-
Notifications
You must be signed in to change notification settings - Fork 801
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
pre_delete_hook.yaml should support release namespace #2342
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Build Succeeded 👏 Build Id: 017fac43-d33e-437b-b255-c1ea9d0814d4 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:
|
Build Succeeded 👏 Build Id: 1dc44ace-937c-4d0e-9f5a-f3dfae38d271 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:
|
@rayterrill - can you please sign the CLA? |
@googlebot I signed it! |
LGTM. Any issues on your end @roberthbailey ? |
I'm not sure what this configmap / job do. Are they meant to clean up any running game servers when you uninstall? If so, shouldn't the be configured to run in Or do they clean up the agones system components? In which case putting them into the release namespace does make sense. |
That is actually a really good point. I thought it deleted Agones components, but it actually deletes all GameServer and related. You can see the script it runs here: So there are actually a few problems we should solve: Moving this into the release namespace is likely going to mean it's not going to delete anything, since it won't find any of the GameServers in the release namespace (I'm assuming that is where it will run). So, we should either:
Thoughts? |
Looking lower in the helm template (hidden by default in the diff) it looks like we pass the So this change will implement your second suggestion - moving the job and configmap into the |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rayterrill, roberthbailey 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. |
As an aside I did also verify that |
Build Failed 😱 Build Id: fc1d9917-3824-44ec-8c2e-f6394a2dc2db To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: 3a44d172-4a84-42b9-a726-2773ac8ff905 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:
|
What type of PR is this?
/kind bug
What this PR does / Why we need it:
The helm cleanup hook currently doesnt support installation namespace, so it goes into the default namespace.
Which issue(s) this PR fixes:
Closes #
Special notes for your reviewer: