Skip to content

Commit

Permalink
Merge pull request #1905 from robscott/gep-1323-standard
Browse files Browse the repository at this point in the history
Graduating GEP-1323: Response Header Modifier to standard
  • Loading branch information
k8s-ci-robot authored Apr 5, 2023
2 parents 37768ab + aeed855 commit 26ce3a3
Show file tree
Hide file tree
Showing 5 changed files with 433 additions and 24 deletions.
1 change: 0 additions & 1 deletion apis/v1alpha2/grpcroute_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ type GRPCRouteFilter struct {
// Support: Extended
//
// +optional
// <gateway:experimental>
ResponseHeaderModifier *HTTPHeaderFilter `json:"responseHeaderModifier,omitempty"`

// RequestMirror defines a schema for a filter that mirrors requests.
Expand Down
6 changes: 1 addition & 5 deletions apis/v1beta1/httproute_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,7 @@ type HTTPRouteFilter struct {
// Reason of `UnsupportedValue`.
//
// +unionDiscriminator
// +kubebuilder:validation:Enum=RequestHeaderModifier;RequestMirror;RequestRedirect;URLRewrite;ExtensionRef
// <gateway:experimental:validation:Enum=RequestHeaderModifier;ResponseHeaderModifier;RequestMirror;RequestRedirect;URLRewrite;ExtensionRef>
// +kubebuilder:validation:Enum=RequestHeaderModifier;ResponseHeaderModifier;RequestMirror;RequestRedirect;URLRewrite;ExtensionRef
Type HTTPRouteFilterType `json:"type"`

// RequestHeaderModifier defines a schema for a filter that modifies request
Expand All @@ -601,7 +600,6 @@ type HTTPRouteFilter struct {
// Support: Extended
//
// +optional
// <gateway:experimental>
ResponseHeaderModifier *HTTPHeaderFilter `json:"responseHeaderModifier,omitempty"`

// RequestMirror defines a schema for a filter that mirrors requests.
Expand Down Expand Up @@ -657,8 +655,6 @@ const (
// Support in HTTPRouteRule: Extended
//
// Support in HTTPBackendRef: Extended
//
// <gateway:experimental>
HTTPRouteFilterResponseHeaderModifier HTTPRouteFilterType = "ResponseHeaderModifier"

// HTTPRouteFilterRequestRedirect can be used to redirect a request to
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions config/crd/experimental/gateway.networking.k8s.io_httproutes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 26ce3a3

Please sign in to comment.