Skip to content

Commit

Permalink
Remove "all" category from virtualmachineclusterinstancetypes/virtual…
Browse files Browse the repository at this point in the history
…machineclusterpreferences

This results in `k get all -n <namespace>` returning those cluster-scoped resources.
```bash
$ oc get all -n openshift-config
Warning: kubevirt.io/v1 VirtualMachineInstancePresets is now deprecated and will be removed in v2.
NAME                                                                                AGE
virtualmachineclusterinstancetype.instancetype.kubevirt.io/cx1.2xlarge              5d22h
virtualmachineclusterinstancetype.instancetype.kubevirt.io/cx1.4xlarge              5d22h
```

Signed-off-by: Alex Kalenyuk <[email protected]>
  • Loading branch information
akalenyu committed Mar 29, 2023
1 parent 72a5ff0 commit 11ababa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/virt-operator/resource/generate/components/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ func NewVirtualMachineClusterInstancetypeCrd() (*extv1.CustomResourceDefinition,
Singular: instancetype.ClusterSingularResourceName,
ShortNames: []string{"vmclusterinstancetype", "vmclusterinstancetypes", "vmcf", "vmcfs"},
Kind: "VirtualMachineClusterInstancetype",
Categories: []string{"all"},
},
Scope: extv1.ClusterScoped,
Conversion: &extv1.CustomResourceConversion{
Expand Down Expand Up @@ -718,7 +717,6 @@ func NewVirtualMachineClusterPreferenceCrd() (*extv1.CustomResourceDefinition, e
Singular: instancetype.ClusterSingularPreferenceResourceName,
ShortNames: []string{"vmcp", "vmcps"},
Kind: "VirtualMachineClusterPreference",
Categories: []string{"all"},
},
Scope: extv1.ClusterScoped,
Conversion: &extv1.CustomResourceConversion{
Expand Down

0 comments on commit 11ababa

Please sign in to comment.