diff --git a/api/v1alpha1/workspace_types.go b/api/v1alpha1/workspace_types.go index caecbb99..b224fcfc 100644 --- a/api/v1alpha1/workspace_types.go +++ b/api/v1alpha1/workspace_types.go @@ -62,7 +62,7 @@ type Binding struct { // BindingRequest provides the name and namespace of the SpaceBindingRequest that generated the SpaceBinding resource. // It's available only if the binding was generated using the SpaceBindingRequest mechanism. // +optional - BindingRequest BindingRequest `json:"bindingRequest,omitempty"` + BindingRequest *BindingRequest `json:"bindingRequest,omitempty"` } // BindingRequest contains the name and the namespace where of the associated SpaceBindingRequest. diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 1d560537..33a5fc5d 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -160,7 +160,11 @@ func (in *Binding) DeepCopyInto(out *Binding) { *out = make([]string, len(*in)) copy(*out, *in) } - out.BindingRequest = in.BindingRequest + if in.BindingRequest != nil { + in, out := &in.BindingRequest, &out.BindingRequest + *out = new(BindingRequest) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding. diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 212f1d48..230e1f21 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -321,7 +321,6 @@ func schema_codeready_toolchain_api_api_v1alpha1_Binding(ref common.ReferenceCal "bindingRequest": { SchemaProps: spec.SchemaProps{ Description: "BindingRequest provides the name and namespace of the SpaceBindingRequest that generated the SpaceBinding resource. It's available only if the binding was generated using the SpaceBindingRequest mechanism.", - Default: map[string]interface{}{}, Ref: ref("github.com/codeready-toolchain/api/api/v1alpha1.BindingRequest"), }, },