From a9ca59b0cb3a815bc4b48c2d82e24039cc880c2f Mon Sep 17 00:00:00 2001 From: Bryan Venteicher Date: Wed, 8 Nov 2023 12:42:08 -0600 Subject: [PATCH] Revert "Mark v1a2 VirtualMachineClass as namespace scoped" This reverts commit 25b6933d95656b4178f23a5a7c4229c0cf99573b. While apparently very biased towards v1a1, the controller-gen manifest output is not deterministic. Since this change was just for informational purposes - the Scope field is fixed up later - revert this change. --- api/v1alpha2/virtualmachineclass_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1alpha2/virtualmachineclass_types.go b/api/v1alpha2/virtualmachineclass_types.go index c9ada2031..a53500b98 100644 --- a/api/v1alpha2/virtualmachineclass_types.go +++ b/api/v1alpha2/virtualmachineclass_types.go @@ -244,7 +244,7 @@ type VirtualMachineClassStatus struct { } // +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Namespaced,shortName=vmclass +// +kubebuilder:resource:scope=Cluster,shortName=vmclass // +kubebuilder:storageversion // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="CPU",type="string",JSONPath=".spec.hardware.cpus"