Skip to content

Commit

Permalink
add(api): shortname for CRD (#650)
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw authored Oct 20, 2023
1 parent c7a1996 commit 79958f1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/datasciencecluster/v1/datasciencecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type DataScienceClusterStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster
//+kubebuilder:resource:scope=Cluster,shortName=dsc
//+kubebuilder:storageversion

// DataScienceCluster is the Schema for the datascienceclusters API.
Expand Down
2 changes: 1 addition & 1 deletion apis/dscinitialization/v1/dscinitialization_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type DSCInitializationStatus struct {
}

//+kubebuilder:object:root=true
//+kubebuilder:resource:scope=Cluster
//+kubebuilder:resource:scope=Cluster,shortName=dsci
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Age",type=date,JSONPath=.metadata.creationTimestamp
//+kubebuilder:printcolumn:name="Phase",type=string,JSONPath=.status.phase,description="Current Phase"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: DataScienceCluster
listKind: DataScienceClusterList
plural: datascienceclusters
shortNames:
- dsc
singular: datasciencecluster
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: DSCInitialization
listKind: DSCInitializationList
plural: dscinitializations
shortNames:
- dsci
singular: dscinitialization
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: DataScienceCluster
listKind: DataScienceClusterList
plural: datascienceclusters
shortNames:
- dsc
singular: datasciencecluster
scope: Cluster
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: DSCInitialization
listKind: DSCInitializationList
plural: dscinitializations
shortNames:
- dsci
singular: dscinitialization
scope: Cluster
versions:
Expand Down

0 comments on commit 79958f1

Please sign in to comment.