diff --git a/ocp_resources/managed_cluster.py b/ocp_resources/managed_cluster.py new file mode 100644 index 0000000000..c6c5f92fe4 --- /dev/null +++ b/ocp_resources/managed_cluster.py @@ -0,0 +1,10 @@ +from ocp_resources.resource import Resource + + +class ManagedCluster(Resource): + """ + https://github.com/stolostron/api/blob/main/cluster/v1/0000_00_clusters.open-cluster-management.io_managedclusters.crd.yaml + Provides a representation of the managed cluster on the hub. + """ + + api_group = Resource.ApiGroup.CLUSTER_OPEN_CLUSTER_MANAGEMENT_IO diff --git a/ocp_resources/resource.py b/ocp_resources/resource.py index 3cc23498af..04ce55f020 100644 --- a/ocp_resources/resource.py +++ b/ocp_resources/resource.py @@ -246,6 +246,7 @@ class ApiGroup: BATCH = "batch" CDI_KUBEVIRT_IO = "cdi.kubevirt.io" CLONE_KUBEVIRT_IO = "clone.kubevirt.io" + CLUSTER_OPEN_CLUSTER_MANAGEMENT_IO = "cluster.open-cluster-management.io" CONFIG_OPENSHIFT_IO = "config.openshift.io" CONSOLE_OPENSHIFT_IO = "console.openshift.io" COORDINATION_K8S_IO = "coordination.k8s.io"