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

Change cm to retrieve credentials (if available) regardless of cluster status #253

Closed
sbostick opened this issue Aug 23, 2022 · 1 comment

Comments

@sbostick
Copy link

As an end user of cm cli I want to retrieve managed cluster credentials, thus:

cm create cc clusterpool-sno-1 sno-1
cm get cc sno-1
cm use cc sno-1
oc get nodes

Alternatively:

cm get cc sno-1 --creds --timeout 1

Currently cm checks cluster state but due to HIVE-1743 the cluster state might be misidentified as Resuming. In this case cm aborts before attempting to retrieve the credentials.

A workaround is available to retrieve credentials:

oc extract -n clusterpool-sno-1-bxtjn secret/sno-1-g5pml-admin-password --to=-
oc extract -n clusterpool-sno-1-bxtjn secret/sno-1-g5pml-admin-kubeconfig --keys=kubeconfig --to=-

See also issues/247 related to KUBECONFIG creds management. Both issues are applicable to internal automation using ACM+Hive, for example compliance, interop, and scale testing, and related to credentials retrieval and management. Both really useful features for automation.

References

@sbostick
Copy link
Author

Dupe of #252
Feel free to close either ticket as dupe.

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

2 participants