Skip to content

Commit

Permalink
Merge pull request #109 from six-group/fix-del-header
Browse files Browse the repository at this point in the history
set the method as optional in HTTPDeleteHeaderRule
  • Loading branch information
xosk31 authored Dec 18, 2024
2 parents 3e75394 + c43a099 commit 29b529b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apis/config/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ spec:
description: Name specifies the header name
type: string
required:
- method
- name
type: object
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ spec:
description: Name specifies the header name
type: string
required:
- method
- name
type: object
type: array
Expand Down
1 change: 0 additions & 1 deletion helm/haproxy-operator/crds/config.haproxy.com_listens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,6 @@ spec:
description: Name specifies the header name
type: string
required:
- method
- name
type: object
type: array
Expand Down

0 comments on commit 29b529b

Please sign in to comment.