From 950f6ce9ea16cf0f95ce91c5d9f24d3106c963e9 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Fri, 10 May 2024 16:07:45 +0200 Subject: [PATCH] make codegen Signed-off-by: Dr. Stefan Schimanski --- .../applyconfiguration/apis/v1alpha1/apibindingstatus.go | 6 ++++-- .../applyconfiguration/tenancy/v1alpha1/workspacespec.go | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sdk/client/applyconfiguration/apis/v1alpha1/apibindingstatus.go b/sdk/client/applyconfiguration/apis/v1alpha1/apibindingstatus.go index 0e17539edab..3f2dd6ee92e 100644 --- a/sdk/client/applyconfiguration/apis/v1alpha1/apibindingstatus.go +++ b/sdk/client/applyconfiguration/apis/v1alpha1/apibindingstatus.go @@ -19,6 +19,8 @@ limitations under the License. package v1alpha1 import ( + v3 "github.com/kcp-dev/logicalcluster/v3" + apisv1alpha1 "github.com/kcp-dev/kcp/sdk/apis/apis/v1alpha1" conditionsv1alpha1 "github.com/kcp-dev/kcp/sdk/apis/third_party/conditions/apis/conditions/v1alpha1" ) @@ -26,7 +28,7 @@ import ( // APIBindingStatusApplyConfiguration represents an declarative configuration of the APIBindingStatus type for use // with apply. type APIBindingStatusApplyConfiguration struct { - APIExportClusterName *string `json:"apiExportClusterName,omitempty"` + APIExportClusterName *v3.Name `json:"apiExportClusterName,omitempty"` BoundResources []BoundAPIResourceApplyConfiguration `json:"boundResources,omitempty"` Phase *apisv1alpha1.APIBindingPhaseType `json:"phase,omitempty"` Conditions *conditionsv1alpha1.Conditions `json:"conditions,omitempty"` @@ -43,7 +45,7 @@ func APIBindingStatus() *APIBindingStatusApplyConfiguration { // WithAPIExportClusterName sets the APIExportClusterName 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 APIExportClusterName field is set to the value of the last call. -func (b *APIBindingStatusApplyConfiguration) WithAPIExportClusterName(value string) *APIBindingStatusApplyConfiguration { +func (b *APIBindingStatusApplyConfiguration) WithAPIExportClusterName(value v3.Name) *APIBindingStatusApplyConfiguration { b.APIExportClusterName = &value return b } diff --git a/sdk/client/applyconfiguration/tenancy/v1alpha1/workspacespec.go b/sdk/client/applyconfiguration/tenancy/v1alpha1/workspacespec.go index cadd613e50d..919858109fb 100644 --- a/sdk/client/applyconfiguration/tenancy/v1alpha1/workspacespec.go +++ b/sdk/client/applyconfiguration/tenancy/v1alpha1/workspacespec.go @@ -18,12 +18,16 @@ limitations under the License. package v1alpha1 +import ( + v3 "github.com/kcp-dev/logicalcluster/v3" +) + // WorkspaceSpecApplyConfiguration represents an declarative configuration of the WorkspaceSpec type for use // with apply. type WorkspaceSpecApplyConfiguration struct { Type *WorkspaceTypeReferenceApplyConfiguration `json:"type,omitempty"` Location *WorkspaceLocationApplyConfiguration `json:"location,omitempty"` - Cluster *string `json:"cluster,omitempty"` + Cluster *v3.Name `json:"cluster,omitempty"` URL *string `json:"URL,omitempty"` } @@ -52,7 +56,7 @@ func (b *WorkspaceSpecApplyConfiguration) WithLocation(value *WorkspaceLocationA // WithCluster sets the Cluster 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 Cluster field is set to the value of the last call. -func (b *WorkspaceSpecApplyConfiguration) WithCluster(value string) *WorkspaceSpecApplyConfiguration { +func (b *WorkspaceSpecApplyConfiguration) WithCluster(value v3.Name) *WorkspaceSpecApplyConfiguration { b.Cluster = &value return b }