From 5ec5c0257e8e80cec63e2a37ff8e6234894ea8df Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Thu, 19 Oct 2023 07:48:51 +0200 Subject: [PATCH] add(api): shortname for CRD Signed-off-by: Wen Zhou --- apis/datasciencecluster/v1/datasciencecluster_types.go | 2 +- apis/dscinitialization/v1/dscinitialization_types.go | 2 +- .../datasciencecluster.opendatahub.io_datascienceclusters.yaml | 2 ++ .../dscinitialization.opendatahub.io_dscinitializations.yaml | 2 ++ .../datasciencecluster.opendatahub.io_datascienceclusters.yaml | 2 ++ .../dscinitialization.opendatahub.io_dscinitializations.yaml | 2 ++ 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apis/datasciencecluster/v1/datasciencecluster_types.go b/apis/datasciencecluster/v1/datasciencecluster_types.go index 2a5a9ad5021..ce475b94eda 100644 --- a/apis/datasciencecluster/v1/datasciencecluster_types.go +++ b/apis/datasciencecluster/v1/datasciencecluster_types.go @@ -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. diff --git a/apis/dscinitialization/v1/dscinitialization_types.go b/apis/dscinitialization/v1/dscinitialization_types.go index 9943c042c52..4deb280bd65 100644 --- a/apis/dscinitialization/v1/dscinitialization_types.go +++ b/apis/dscinitialization/v1/dscinitialization_types.go @@ -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" diff --git a/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml b/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml index cf56544c502..7dce236c805 100644 --- a/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml +++ b/bundle/manifests/datasciencecluster.opendatahub.io_datascienceclusters.yaml @@ -11,6 +11,8 @@ spec: kind: DataScienceCluster listKind: DataScienceClusterList plural: datascienceclusters + shortNames: + - dsc singular: datasciencecluster scope: Cluster versions: diff --git a/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml b/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml index 6c066955183..2110872b9e1 100644 --- a/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml +++ b/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml @@ -11,6 +11,8 @@ spec: kind: DSCInitialization listKind: DSCInitializationList plural: dscinitializations + shortNames: + - dsci singular: dscinitialization scope: Cluster versions: diff --git a/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml b/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml index 8a8d37bfe9d..146d6c2493b 100644 --- a/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml +++ b/config/crd/bases/datasciencecluster.opendatahub.io_datascienceclusters.yaml @@ -12,6 +12,8 @@ spec: kind: DataScienceCluster listKind: DataScienceClusterList plural: datascienceclusters + shortNames: + - dsc singular: datasciencecluster scope: Cluster versions: diff --git a/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml b/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml index a7e38baedda..84abc1fa1e0 100644 --- a/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml +++ b/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml @@ -12,6 +12,8 @@ spec: kind: DSCInitialization listKind: DSCInitializationList plural: dscinitializations + shortNames: + - dsci singular: dscinitialization scope: Cluster versions: