diff --git a/apis/config/v1alpha1/common_types.go b/apis/config/v1alpha1/common_types.go index d095c30..0fb65b7 100644 --- a/apis/config/v1alpha1/common_types.go +++ b/apis/config/v1alpha1/common_types.go @@ -976,7 +976,8 @@ type HTTPDeleteHeaderRule struct { Name string `json:"name"` // Method is the matching applied on the header name // +kubebuilder:validation:Enum=str;beg;end;sub;reg - Method string `json:"method"` + // +optional + Method string `json:"method,omitempty"` } type HTTPPathRule struct { diff --git a/helm/haproxy-operator/crds/config.haproxy.com_backends.yaml b/helm/haproxy-operator/crds/config.haproxy.com_backends.yaml index 74e8893..38e762c 100644 --- a/helm/haproxy-operator/crds/config.haproxy.com_backends.yaml +++ b/helm/haproxy-operator/crds/config.haproxy.com_backends.yaml @@ -583,7 +583,6 @@ spec: description: Name specifies the header name type: string required: - - method - name type: object type: array diff --git a/helm/haproxy-operator/crds/config.haproxy.com_frontends.yaml b/helm/haproxy-operator/crds/config.haproxy.com_frontends.yaml index 8482863..e7bc044 100644 --- a/helm/haproxy-operator/crds/config.haproxy.com_frontends.yaml +++ b/helm/haproxy-operator/crds/config.haproxy.com_frontends.yaml @@ -853,7 +853,6 @@ spec: description: Name specifies the header name type: string required: - - method - name type: object type: array diff --git a/helm/haproxy-operator/crds/config.haproxy.com_listens.yaml b/helm/haproxy-operator/crds/config.haproxy.com_listens.yaml index f2dc118..d656f0a 100644 --- a/helm/haproxy-operator/crds/config.haproxy.com_listens.yaml +++ b/helm/haproxy-operator/crds/config.haproxy.com_listens.yaml @@ -995,7 +995,6 @@ spec: description: Name specifies the header name type: string required: - - method - name type: object type: array