diff --git a/apis/v1/gateway_types.go b/apis/v1/gateway_types.go index 00aa9bb081..20cca8eca1 100644 --- a/apis/v1/gateway_types.go +++ b/apis/v1/gateway_types.go @@ -227,7 +227,7 @@ type GatewaySpec struct { // // // +optional - Infrastructure GatewayInfrastructure `json:"infrastructure,omitempty"` + Infrastructure *GatewayInfrastructure `json:"infrastructure,omitempty"` } // Listener embodies the concept of a logical endpoint where a Gateway accepts diff --git a/apis/v1/zz_generated.deepcopy.go b/apis/v1/zz_generated.deepcopy.go index 25fadfa894..8d047a2843 100644 --- a/apis/v1/zz_generated.deepcopy.go +++ b/apis/v1/zz_generated.deepcopy.go @@ -366,7 +366,11 @@ func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - in.Infrastructure.DeepCopyInto(&out.Infrastructure) + if in.Infrastructure != nil { + in, out := &in.Infrastructure, &out.Infrastructure + *out = new(GatewayInfrastructure) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewaySpec.