From 126b32c5796e7909fad00229118015da0a67ac18 Mon Sep 17 00:00:00 2001 From: Kevin Pollet Date: Fri, 24 Sep 2021 11:32:07 +0200 Subject: [PATCH] fix: add missing RequireAnyClientCert value to TLSOption CRD --- .../dynamic-configuration/traefik.containo.us_tlsoptions.yaml | 1 + integration/fixtures/k8s/01-traefik-crd.yml | 1 + pkg/provider/kubernetes/crd/traefik/v1alpha1/tlsoption.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/reference/dynamic-configuration/traefik.containo.us_tlsoptions.yaml b/docs/content/reference/dynamic-configuration/traefik.containo.us_tlsoptions.yaml index f155909e2..40e813de1 100644 --- a/docs/content/reference/dynamic-configuration/traefik.containo.us_tlsoptions.yaml +++ b/docs/content/reference/dynamic-configuration/traefik.containo.us_tlsoptions.yaml @@ -54,6 +54,7 @@ spec: enum: - NoClientCert - RequestClientCert + - RequireAnyClientCert - VerifyClientCertIfGiven - RequireAndVerifyClientCert type: string diff --git a/integration/fixtures/k8s/01-traefik-crd.yml b/integration/fixtures/k8s/01-traefik-crd.yml index 3c9ca6f51..44212b9f0 100644 --- a/integration/fixtures/k8s/01-traefik-crd.yml +++ b/integration/fixtures/k8s/01-traefik-crd.yml @@ -1226,6 +1226,7 @@ spec: enum: - NoClientCert - RequestClientCert + - RequireAnyClientCert - VerifyClientCertIfGiven - RequireAndVerifyClientCert type: string diff --git a/pkg/provider/kubernetes/crd/traefik/v1alpha1/tlsoption.go b/pkg/provider/kubernetes/crd/traefik/v1alpha1/tlsoption.go index 9faf2d61c..72c06f144 100644 --- a/pkg/provider/kubernetes/crd/traefik/v1alpha1/tlsoption.go +++ b/pkg/provider/kubernetes/crd/traefik/v1alpha1/tlsoption.go @@ -36,7 +36,7 @@ type TLSOptionSpec struct { type ClientAuth struct { // SecretName is the name of the referenced Kubernetes Secret to specify the certificate details. SecretNames []string `json:"secretNames,omitempty"` - // +kubebuilder:validation:Enum=NoClientCert;RequestClientCert;VerifyClientCertIfGiven;RequireAndVerifyClientCert + // +kubebuilder:validation:Enum=NoClientCert;RequestClientCert;RequireAnyClientCert;VerifyClientCertIfGiven;RequireAndVerifyClientCert // ClientAuthType defines the client authentication type to apply. ClientAuthType string `json:"clientAuthType,omitempty"` }