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

Request from Mihir Lele #4

Open
waldirio opened this issue May 5, 2023 · 1 comment
Open

Request from Mihir Lele #4

waldirio opened this issue May 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@waldirio
Copy link
Contributor

waldirio commented May 5, 2023

  1. Going through the article https://access.redhat.com/solutions/5126721, I can see a lot of commands mapping to each version of ACM and MCE. These commands can be condensed to just two generic commands. Something like this:
For ACM must-gather:

$ oc adm must-gather --image=[registry.redhat.io/rhacm2/acm-must-gather-rhel8:$(oc](http://registry.redhat.io/rhacm2/acm-must-gather-rhel8:$(oc) get csv -n open-cluster-management -l [operators.coreos.com/advanced-cluster-management.open-cluster-management=](http://operators.coreos.com/advanced-cluster-management.open-cluster-management=) -o=jsonpath='{.items[].spec.version}')  --dest-dir=<directory>

For MCE must-gather:

$ oc adm must-gather --image=[registry.redhat.io/multicluster-engine/must-gather-rhel8:v$(oc](http://registry.redhat.io/multicluster-engine/must-gather-rhel8:v$(oc) get csv  -n multicluster-engine -l [operators.coreos.com/multicluster-engine.multicluster-engine=](http://operators.coreos.com/multicluster-engine.multicluster-engine=) -o=jsonpath='{.items[].spec.version}') --dest-dir=<directory>
@waldirio waldirio added the enhancement New feature or request label May 5, 2023
@mheppler-rh
Copy link
Contributor

I am using almost the same way, but add some logic around - Latest ACM must-gather covers MCE, so only one is necessary.

And this namespaces are not available on managed clusters, so version must be enforced (option -m <VERSION>)

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

No branches or pull requests

2 participants