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

Option to send all oc debug queries to a specific namespace ( --to-namespace=NAMESPACE ) #80

Open
MikeDawg opened this issue Aug 2, 2021 · 1 comment

Comments

@MikeDawg
Copy link

MikeDawg commented Aug 2, 2021

Would like to see a quick and easy way to send all the oc debug queries to a specific namespace. I can give you a patch by EOD.

@e-minguez
Copy link
Contributor

Thanks!

I was thinking on creating a random string such as 'checks-RANDOMSTUFF' (cannot request a project starting with "openshift-") in the 'main', then create the namespace like:

cat << EOF | oc apply -f
apiVersion: v1
kind: Namespace
metadata:
  name: checks-RANDOMSTUFF
EOF

And then use the --to-namespace flag on all the oc debug to force creating all the debug containers there. Also, at the end of the script, delete the namespace just in case.

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