Skip to content

Commit c3ed063

Browse files
authored
fix: add CORS to HTTPRouteFilterType (#3668)
* fix: add CORS to `HTTPRouteFilterType` * fix: only add CORS to experimental
1 parent 4e6eee2 commit c3ed063

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

apis/v1/httproute_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ type HTTPRouteFilter struct {
830830
//
831831
// +unionDiscriminator
832832
// +kubebuilder:validation:Enum=RequestHeaderModifier;ResponseHeaderModifier;RequestMirror;RequestRedirect;URLRewrite;ExtensionRef
833+
// <gateway:experimental:validation:Enum=RequestHeaderModifier;ResponseHeaderModifier;RequestMirror;RequestRedirect;URLRewrite;ExtensionRef;CORS>
833834
Type HTTPRouteFilterType `json:"type"`
834835

835836
// RequestHeaderModifier defines a schema for a filter that modifies request

config/crd/experimental/gateway.networking.k8s.io_httproutes.yaml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)