-
Notifications
You must be signed in to change notification settings - Fork 94
CLOUDP-221656: Added an openshift test cleaner to the regular cleaner job #2360
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
Conversation
.github/workflows/cleanup-test.yml
Outdated
@@ -48,6 +48,12 @@ jobs: | |||
|
|||
echo credentials=$(realpath ~/gcp_sa_cred.json) >> $GITHUB_OUTPUT | |||
|
|||
- name: Download tools for openshift test cleaner | |||
run: | | |||
wget https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.6/openshift-client-linux.tar.gz -O openshift.tar.gz -q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.6 is very old, also I am a bit concerned about keeping this up-to-date. Can't we inline this in the script itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from the upgrade test, which still works. We use a limited set of OC commands. But we can bump them to the latest one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can, but this is only needed for this script. You can't launch it locally anyway
else | ||
for ns in $namespaces; do | ||
echo "Deleting namespace: $ns" | ||
oc delete namespace --force "$ns" --wait=true --timeout=60s || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am thinking, why are we scripting this? can we write a small go based program to delete the namespaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? That's way easier with existing tools to just find namespace to delete and delete them, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was just thinking that we have one less bash script 😆 no hard opinion here tbh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I see :) Then let's keep it as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see this being devbox'ified, it's the reason we introduced it in the first place to have one place to see all used versions.
de042a2
to
e4bd923
Compare
Summary
Added an openshift test cleaner to the regular cleaner job
Checklist