Skip to content

Commit 75147db

Browse files
kranurag7kranurag7
authored andcommitted
add shortNames for objects
Signed-off-by: kranurag7 <[email protected]>
1 parent 832a401 commit 75147db

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed

api/v1alpha1/clusteraddon_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type ClusterAddonStatus struct {
6565
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Cluster Addon"
6666
// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason"
6767
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message"
68+
// +kubebuilder:resource:shortName=caddon
6869

6970
// ClusterAddon is the schema for the clusteraddons API.
7071
type ClusterAddon struct {

api/v1alpha1/clusterstack_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const (
120120
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of ClusterStack"
121121
// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason"
122122
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message"
123+
// +kubebuilder:resource:shortName=csk
123124

124125
// ClusterStack is the Schema for the clusterstacks API.
125126
type ClusterStack struct {

api/v1alpha1/clusterstackrelease_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ type ClusterStackReleaseStatus struct {
6262
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of ClusterStackRelease"
6363
// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason"
6464
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message"
65+
// +kubebuilder:resource:shortName=cskr
6566

6667
// ClusterStackRelease is the Schema for the clusterstackreleases API.
6768
type ClusterStackRelease struct {

config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: ClusterAddon
1212
listKind: ClusterAddonList
1313
plural: clusteraddons
14+
shortNames:
15+
- caddon
1416
singular: clusteraddon
1517
scope: Namespaced
1618
versions:

config/crd/bases/clusterstack.x-k8s.io_clusterstackreleases.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: ClusterStackRelease
1212
listKind: ClusterStackReleaseList
1313
plural: clusterstackreleases
14+
shortNames:
15+
- cskr
1416
singular: clusterstackrelease
1517
scope: Namespaced
1618
versions:

config/crd/bases/clusterstack.x-k8s.io_clusterstacks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: ClusterStack
1212
listKind: ClusterStackList
1313
plural: clusterstacks
14+
shortNames:
15+
- csk
1416
singular: clusterstack
1517
scope: Namespaced
1618
versions:

0 commit comments

Comments
 (0)