diff --git a/ocp_resources/multi_cluster_hub.py b/ocp_resources/multi_cluster_hub.py new file mode 100644 index 0000000000..2074446d88 --- /dev/null +++ b/ocp_resources/multi_cluster_hub.py @@ -0,0 +1,9 @@ +from ocp_resources.resource import NamespacedResource + + +class MultiClusterHub(NamespacedResource): + """ + https://github.com/stolostron/rhacm-docs/blob/8ccc58609821f5d3b2845bb6f5c0cbd597eb3b1c/apis/multicluster_hub.json.adoc#multicluster-hub-api + """ + + api_group = NamespacedResource.ApiGroup.OPERATOR_OPEN_CLUSTER_MANAGEMENT_IO diff --git a/ocp_resources/resource.py b/ocp_resources/resource.py index 04ce55f020..b0b6418be7 100644 --- a/ocp_resources/resource.py +++ b/ocp_resources/resource.py @@ -283,6 +283,7 @@ class ApiGroup: NMSTATE_IO = "nmstate.io" NODEMAINTENANCE_KUBEVIRT_IO = "nodemaintenance.kubevirt.io" OCS_OPENSHIFT_IO = "ocs.openshift.io" + OPERATOR_OPEN_CLUSTER_MANAGEMENT_IO = "operator.open-cluster-management.io" OPERATOR_OPENSHIFT_IO = "operator.openshift.io" OPERATORS_COREOS_COM = "operators.coreos.com" OPERATORS_OPENSHIFT_IO = "operators.openshift.io"