From f32952ac558792a900143d939528282c7fc4e2c3 Mon Sep 17 00:00:00 2001 From: deepakm-ntnx Date: Fri, 1 Dec 2023 11:44:49 -0800 Subject: [PATCH] corrected kubebuilder annotations --- Makefile | 2 +- api/infrastructure/v1beta1/nutanixclustertemplate_types.go | 5 +++-- ...rastructure.cluster.x-k8s.io_nutanixclustertemplates.yaml | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index dd10b28e7e..592d7339a3 100644 --- a/Makefile +++ b/Makefile @@ -407,7 +407,7 @@ test-clusterclass-delete: kubectl -n $(TEST_NAMESPACE) delete KubeadmConfigTemplate my-test-cluster-template-md-kcfgt || true kubectl -n $(TEST_NAMESPACE) delete kubeadmcontrolplanetemplate my-test-cluster-template-kcpt || true kubectl -n $(TEST_NAMESPACE) delete NutanixClustertemplate my-test-cluster-template-nct || true - kubectl -n $(TEST_NAMESPACE) delete secret ccls-test1 + # kubectl -n $(TEST_NAMESPACE) delete secret ccls-test1 kubectl -n $(TEST_NAMESPACE) delete cm user-ca-bundle rm ccls-test1.yaml || true diff --git a/api/infrastructure/v1beta1/nutanixclustertemplate_types.go b/api/infrastructure/v1beta1/nutanixclustertemplate_types.go index b0058388ca..a7b1ae0de7 100644 --- a/api/infrastructure/v1beta1/nutanixclustertemplate_types.go +++ b/api/infrastructure/v1beta1/nutanixclustertemplate_types.go @@ -37,7 +37,6 @@ type NutanixClusterTemplateStatus struct { } //+kubebuilder:object:root=true -//+kubebuilder:subresource:status // NutanixClusterTemplate is the Schema for the nutanixclustertemplates API type NutanixClusterTemplate struct { @@ -47,7 +46,9 @@ type NutanixClusterTemplate struct { Spec NutanixClusterTemplateSpec `json:"spec,omitempty"` } -//+kubebuilder:object:root=true +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=nutanixclustertemplates,shortName=nctl,scope=Namespaced,categories=cluster-api +// +kubebuilder:storageversion // NutanixClusterTemplateList contains a list of NutanixClusterTemplate type NutanixClusterTemplateList struct { diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_nutanixclustertemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_nutanixclustertemplates.yaml index e326e1c519..cdff930f16 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_nutanixclustertemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_nutanixclustertemplates.yaml @@ -144,5 +144,3 @@ spec: type: object served: true storage: true - subresources: - status: {}