Skip to content

Commit

Permalink
Merge pull request #174 from SovereignCloudStack/kr/add-shortnames
Browse files Browse the repository at this point in the history
🌱 add shortNames for objects
  • Loading branch information
janiskemper committed Jun 7, 2024
2 parents 832a401 + 75147db commit 0377c29
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/clusteraddon_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/clusterstack_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/clusterstackrelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/clusterstack.x-k8s.io_clusteraddons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: ClusterAddon
listKind: ClusterAddonList
plural: clusteraddons
shortNames:
- caddon
singular: clusteraddon
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: ClusterStackRelease
listKind: ClusterStackReleaseList
plural: clusterstackreleases
shortNames:
- cskr
singular: clusterstackrelease
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/clusterstack.x-k8s.io_clusterstacks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: ClusterStack
listKind: ClusterStackList
plural: clusterstacks
shortNames:
- csk
singular: clusterstack
scope: Namespaced
versions:
Expand Down

0 comments on commit 0377c29

Please sign in to comment.