Skip to content

Commit 8e8115c

Browse files
authored
fix: turn allowCredentials to boolean (#3656)
* fix: turn `allowCredentials` to boolean * chore: fmt
1 parent 90dd556 commit 8e8115c

File tree

7 files changed

+11
-17
lines changed

7 files changed

+11
-17
lines changed

apis/v1/httproute_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ type HTTPCORSFilter struct {
13711371
// Support: Extended
13721372
//
13731373
// +optional
1374-
AllowCredentials *LowercaseTrue `json:"allowCredentials,omitempty"`
1374+
AllowCredentials TrueField `json:"allowCredentials,omitempty"`
13751375

13761376
// AllowMethods indicates which HTTP methods are supported for accessing the
13771377
// requested resource.

apis/v1/shared_types.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,10 @@ type HeaderName string
764764
// +kubebuilder:validation:Pattern=`^([0-9]{1,5}(h|m|s|ms)){1,4}$`
765765
type Duration string
766766

767-
// LowercaseTrue is a string value that can only be set to "true" (case
768-
// sensitive).
767+
// TrueField is a boolean value that can only be set to true
769768
//
770769
// +kubebuilder:validation:Enum=true
771-
type LowercaseTrue string
770+
type TrueField bool
772771

773772
const (
774773
// A textual representation of a numeric IP address. IPv4

apis/v1/zz_generated.deepcopy.go

-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

applyconfiguration/apis/v1/httpcorsfilter.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

applyconfiguration/internal/internal.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+4-4
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)