-
Notifications
You must be signed in to change notification settings - Fork 817
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
Fix cleanup Agones resources script #1240
Fix cleanup Agones resources script #1240
Conversation
Remove old stable.agones.dev pods getter which was hiding new one.
# Building the list of pods we need to ensure are deleted. | ||
gs=$(kubectl -n $ns get gs -o jsonpath='{.items[*].metadata.name}') | ||
|
||
for g in $gs; do | ||
pod=$(kubectl -n $ns get po -l agones.dev/gameserver=$g -o jsonpath='{.items[*].metadata.name}') | ||
# TODO(roberthbailey): Remove this after we cut Agones 0.12.0 | ||
pod=$(kubectl -n $ns get po -l stable.agones.dev/gameserver=$g -o jsonpath='{.items[*].metadata.name}') |
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 variable reassignment hides the pod list retrieved by a previous line. This could be the reason why previously make uninstall && make install
fails on gameservers crds which not able to be deleted.
Hello @roberthbailey , please take a look. Either we can merge this or we need to add one more |
Build Succeeded 👏 Build Id: 8bc5cdbc-d89d-4b1a-98d0-974aa44c6183 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
/assign @roberthbailey |
/assign @markmandel taking this for a test run now! |
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.
Confirmed, this is working!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aLekSer, markmandel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
Build Succeeded 👏 Build Id: 88f2ddbe-2d45-49eb-a827-c57a77546110 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Remove old stable.agones.dev pods getter which was hiding new one.
Remove old stable.agones.dev pods getter which was hiding new one.