diff --git a/apis/applyconfiguration/apis/v1/grpcheadermatch.go b/apis/applyconfiguration/apis/v1/grpcheadermatch.go index 16b6ee4dcc..59789809c2 100644 --- a/apis/applyconfiguration/apis/v1/grpcheadermatch.go +++ b/apis/applyconfiguration/apis/v1/grpcheadermatch.go @@ -25,9 +25,9 @@ import ( // GRPCHeaderMatchApplyConfiguration represents an declarative configuration of the GRPCHeaderMatch type for use // with apply. type GRPCHeaderMatchApplyConfiguration struct { - Type *v1.HeaderMatchType `json:"type,omitempty"` - Name *v1.GRPCHeaderName `json:"name,omitempty"` - Value *string `json:"value,omitempty"` + Type *v1.GRPCHeaderMatchType `json:"type,omitempty"` + Name *v1.GRPCHeaderName `json:"name,omitempty"` + Value *string `json:"value,omitempty"` } // GRPCHeaderMatchApplyConfiguration constructs an declarative configuration of the GRPCHeaderMatch type for use with @@ -39,7 +39,7 @@ func GRPCHeaderMatch() *GRPCHeaderMatchApplyConfiguration { // WithType sets the Type field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Type field is set to the value of the last call. -func (b *GRPCHeaderMatchApplyConfiguration) WithType(value v1.HeaderMatchType) *GRPCHeaderMatchApplyConfiguration { +func (b *GRPCHeaderMatchApplyConfiguration) WithType(value v1.GRPCHeaderMatchType) *GRPCHeaderMatchApplyConfiguration { b.Type = &value return b } diff --git a/apis/v1/grpcroute_types.go b/apis/v1/grpcroute_types.go index 643e60f0c9..18fc2e5eb9 100644 --- a/apis/v1/grpcroute_types.go +++ b/apis/v1/grpcroute_types.go @@ -388,7 +388,7 @@ type GRPCHeaderMatch struct { // // +optional // +kubebuilder:default=Exact - Type *HeaderMatchType `json:"type,omitempty"` + Type *GRPCHeaderMatchType `json:"type,omitempty"` // Name is the name of the gRPC Header to be matched. // diff --git a/apis/v1/zz_generated.deepcopy.go b/apis/v1/zz_generated.deepcopy.go index a487c06560..c7ceaf0dfa 100644 --- a/apis/v1/zz_generated.deepcopy.go +++ b/apis/v1/zz_generated.deepcopy.go @@ -200,7 +200,7 @@ func (in *GRPCHeaderMatch) DeepCopyInto(out *GRPCHeaderMatch) { *out = *in if in.Type != nil { in, out := &in.Type, &out.Type - *out = new(HeaderMatchType) + *out = new(GRPCHeaderMatchType) **out = **in } }