diff --git a/config/crd/multicluster.x-k8s.io_serviceexports.yaml b/config/crd/multicluster.x-k8s.io_serviceexports.yaml index 2372b1e..4716df5 100644 --- a/config/crd/multicluster.x-k8s.io_serviceexports.yaml +++ b/config/crd/multicluster.x-k8s.io_serviceexports.yaml @@ -11,6 +11,9 @@ spec: kind: ServiceExport listKind: ServiceExportList plural: serviceexports + shortNames: + - svcexport + - svcex singular: serviceexport scope: Namespaced versions: diff --git a/config/crd/multicluster.x-k8s.io_serviceimports.yaml b/config/crd/multicluster.x-k8s.io_serviceimports.yaml index 6b9c2c5..ab4bd07 100644 --- a/config/crd/multicluster.x-k8s.io_serviceimports.yaml +++ b/config/crd/multicluster.x-k8s.io_serviceimports.yaml @@ -11,6 +11,9 @@ spec: kind: ServiceImport listKind: ServiceImportList plural: serviceimports + shortNames: + - svcimport + - svcim singular: serviceimport scope: Namespaced versions: diff --git a/pkg/apis/v1alpha1/serviceexport.go b/pkg/apis/v1alpha1/serviceexport.go index 9035206..c6616b6 100644 --- a/pkg/apis/v1alpha1/serviceexport.go +++ b/pkg/apis/v1alpha1/serviceexport.go @@ -23,6 +23,7 @@ import ( // +genclient // +kubebuilder:object:root=true // +kubebuilder:storageversion +// +kubebuilder:resource:shortName={svcexport,svcex} // ServiceExport declares that the Service with the same name and namespace // as this export should be consumable from other clusters. diff --git a/pkg/apis/v1alpha1/serviceimport.go b/pkg/apis/v1alpha1/serviceimport.go index 238d612..82fafd0 100644 --- a/pkg/apis/v1alpha1/serviceimport.go +++ b/pkg/apis/v1alpha1/serviceimport.go @@ -24,6 +24,7 @@ import ( // +genclient // +kubebuilder:object:root=true // +kubebuilder:storageversion +// +kubebuilder:resource:shortName={svcimport,svcim} // ServiceImport describes a service imported from clusters in a ClusterSet. type ServiceImport struct { diff --git a/pkg/apis/v1alpha2/serviceexport.go b/pkg/apis/v1alpha2/serviceexport.go index 96d8ed1..8b4f675 100644 --- a/pkg/apis/v1alpha2/serviceexport.go +++ b/pkg/apis/v1alpha2/serviceexport.go @@ -22,6 +22,7 @@ import ( // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:shortName={svcexport,svcex} // ServiceExport declares that the Service with the same name and namespace // as this export should be consumable from other clusters. diff --git a/pkg/apis/v1alpha2/serviceimport.go b/pkg/apis/v1alpha2/serviceimport.go index e859e8c..4ca240e 100644 --- a/pkg/apis/v1alpha2/serviceimport.go +++ b/pkg/apis/v1alpha2/serviceimport.go @@ -23,6 +23,7 @@ import ( // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:shortName={svcimport,svcim} // ServiceImport describes a service imported from clusters in a ClusterSet and // the information necessary to consume it. ServiceImport is managed by an MCS