Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get clusters command not working #4

Open
rcarrata opened this issue Mar 4, 2021 · 1 comment
Open

Get clusters command not working #4

rcarrata opened this issue Mar 4, 2021 · 1 comment

Comments

@rcarrata
Copy link
Contributor

rcarrata commented Mar 4, 2021

In RHACM 2.1 the CR for oc get clusters -A doesn't exist:

# oc get clusters -A --show-labels
error: the server doesn't have a resource type "clusters"

This command can be substituted by managedclusterinfo command available in ACM 2.x

# oc get managedclusterinfo -A --show-labels
NAMESPACE       NAME            AGE     LABELS
dev             dev             4h29m   cloud=Amazon,clusterID=xxxx,env=dev,environment=dev,name=dev,region=eu-west-1,vendor=OpenShift
local-cluster   local-cluster   23h     cloud=Amazon,clusterID=xxxx,installer.name=multiclusterhub,installer.namespace=open-cluster-management,local-cluster=true,name=local-cluster,vendor=OpenShift
prod            prod            44m     cloud=AWS,clusterID=xxxx,env=prod,environment=prod,name=prod,vendor=OpenShift
qa              qa              17m     cloud=GCP,clusterID=xxxx,env=qa,environment=qa,name=qa,vendor=OpenShift

ACM Version release-2.1:

# oc get subs -n open-cluster-management
NAME                        PACKAGE                       SOURCE             CHANNEL
acm-operator-subscription   advanced-cluster-management   redhat-operators   release-2.1
@rcarrata
Copy link
Contributor Author

rcarrata commented Mar 4, 2021

PR (#5) to solve this issue generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant