Skip to content

Commit

Permalink
corrected kubebuilder annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Dec 1, 2023
1 parent f046f86 commit f32952a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions api/infrastructure/v1beta1/nutanixclustertemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,3 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}

0 comments on commit f32952a

Please sign in to comment.