Do not assume presence of metal3 apis for external controlplanes
@@ -75,11 +75,6 @@ var (
{Group: "packages.operators.coreos.com", Version: "v1", Resource: "packagemanifests"},
- // metal3.io groups:
-
- {Group: "metal3.io", Version: "v1alpha1", Resource: "baremetalhosts"},
- {Group: "metal3.io", Version: "v1alpha1", Resource: "provisionings"},
-
// openshift.io groups:
{Group: "authorization.openshift.io", Version: "v1", Resource: "selfsubjectrulesreviews"},
@@ -160,6 +155,11 @@ var (
{Group: "machine.openshift.io", Version: "v1beta1", Resource: "machinesets"},
}
+ metal3Types = []schema.GroupVersionResource{
+ {Group: "metal3.io", Version: "v1alpha1", Resource: "baremetalhosts"},
+ {Group: "metal3.io", Version: "v1alpha1", Resource: "provisionings"},
+ }
+
specialTypes = []explainExceptions{
{
gv: schema.GroupVersion{Group: "apps.openshift.io", Version: "v1"},
@@ -390,6 +390,7 @@ var _ = g.Describe("[sig-cli] oc explain", func() {
crdTypes := append(baseCRDTypes, mcoTypes...)
crdTypes = append(crdTypes, autoscalingTypes...)
crdTypes = append(crdTypes, machineTypes...)
+ crdTypes = append(crdTypes, metal3Types...)
g.It("list uncovered GroupVersionResources", func() {
resourceMap := make(map[schema.GroupVersionResource]bool)
kubeClient := kclientset.NewForConfigOrDie(oc.AdminConfig())
