Skip to content

Commit

Permalink
add(api): shortname for CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
zdtsw authored Oct 19, 2023
1 parent e1e558a commit 560693b
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 @@ -12,6 +12,8 @@ spec:
listKind: DataScienceClusterList
plural: datascienceclusters
singular: datasciencecluster
shortNames:
- dsc
scope: Cluster
versions:
- name: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
listKind: DSCInitializationList
plural: dscinitializations
singular: dscinitialization
shortNames:
- dsci
scope: Cluster
versions:
- additionalPrinterColumns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
listKind: DataScienceClusterList
plural: datascienceclusters
singular: datasciencecluster
shortNames:
- dsc
scope: Cluster
versions:
- name: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
listKind: DSCInitializationList
plural: dscinitializations
singular: dscinitialization
shortNames:
- dsci
scope: Cluster
versions:
- additionalPrinterColumns:
Expand Down

0 comments on commit 560693b

Please sign in to comment.