Skip to content

Commit 149ac66

Browse files
authored
add MultiClusterHub (RedHatQE#1463)
* add MultiClusterHub * add api group
1 parent f98b36b commit 149ac66

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ocp_resources/multi_cluster_hub.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from ocp_resources.resource import NamespacedResource
2+
3+
4+
class MultiClusterHub(NamespacedResource):
5+
"""
6+
https://github.com/stolostron/rhacm-docs/blob/8ccc58609821f5d3b2845bb6f5c0cbd597eb3b1c/apis/multicluster_hub.json.adoc#multicluster-hub-api
7+
"""
8+
9+
api_group = NamespacedResource.ApiGroup.OPERATOR_OPEN_CLUSTER_MANAGEMENT_IO

ocp_resources/resource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ class ApiGroup:
283283
NMSTATE_IO = "nmstate.io"
284284
NODEMAINTENANCE_KUBEVIRT_IO = "nodemaintenance.kubevirt.io"
285285
OCS_OPENSHIFT_IO = "ocs.openshift.io"
286+
OPERATOR_OPEN_CLUSTER_MANAGEMENT_IO = "operator.open-cluster-management.io"
286287
OPERATOR_OPENSHIFT_IO = "operator.openshift.io"
287288
OPERATORS_COREOS_COM = "operators.coreos.com"
288289
OPERATORS_OPENSHIFT_IO = "operators.openshift.io"

0 commit comments

Comments
 (0)