diff --git a/api/v1alpha1/clusteraddon_types.go b/api/v1alpha1/clusteraddon_types.go index 28c8380e9..47bad9445 100644 --- a/api/v1alpha1/clusteraddon_types.go +++ b/api/v1alpha1/clusteraddon_types.go @@ -65,6 +65,7 @@ type ClusterAddonStatus struct { // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Cluster Addon" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" +// +kubebuilder:resource:shortName=caddon // ClusterAddon is the schema for the clusteraddons API. type ClusterAddon struct { diff --git a/api/v1alpha1/clusterstack_types.go b/api/v1alpha1/clusterstack_types.go index e36c3cb5a..3ee12a880 100644 --- a/api/v1alpha1/clusterstack_types.go +++ b/api/v1alpha1/clusterstack_types.go @@ -120,6 +120,7 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of ClusterStack" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" +// +kubebuilder:resource:shortName=csk // ClusterStack is the Schema for the clusterstacks API. type ClusterStack struct { diff --git a/api/v1alpha1/clusterstackrelease_types.go b/api/v1alpha1/clusterstackrelease_types.go index a76de817e..db71114d0 100644 --- a/api/v1alpha1/clusterstackrelease_types.go +++ b/api/v1alpha1/clusterstackrelease_types.go @@ -62,6 +62,7 @@ type ClusterStackReleaseStatus struct { // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of ClusterStackRelease" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" +// +kubebuilder:resource:shortName=cskr // ClusterStackRelease is the Schema for the clusterstackreleases API. type ClusterStackRelease struct { diff --git a/config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml b/config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml index b2dabdb3c..9a46908a1 100644 --- a/config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml +++ b/config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml @@ -11,6 +11,8 @@ spec: kind: ClusterAddon listKind: ClusterAddonList plural: clusteraddons + shortNames: + - caddon singular: clusteraddon scope: Namespaced versions: diff --git a/config/crd/bases/clusterstack.x-k8s.io_clusterstackreleases.yaml b/config/crd/bases/clusterstack.x-k8s.io_clusterstackreleases.yaml index 9f59f40a1..6ff168ebb 100644 --- a/config/crd/bases/clusterstack.x-k8s.io_clusterstackreleases.yaml +++ b/config/crd/bases/clusterstack.x-k8s.io_clusterstackreleases.yaml @@ -11,6 +11,8 @@ spec: kind: ClusterStackRelease listKind: ClusterStackReleaseList plural: clusterstackreleases + shortNames: + - cskr singular: clusterstackrelease scope: Namespaced versions: diff --git a/config/crd/bases/clusterstack.x-k8s.io_clusterstacks.yaml b/config/crd/bases/clusterstack.x-k8s.io_clusterstacks.yaml index da92319c6..5febb294f 100644 --- a/config/crd/bases/clusterstack.x-k8s.io_clusterstacks.yaml +++ b/config/crd/bases/clusterstack.x-k8s.io_clusterstacks.yaml @@ -11,6 +11,8 @@ spec: kind: ClusterStack listKind: ClusterStackList plural: clusterstacks + shortNames: + - csk singular: clusterstack scope: Namespaced versions: