-
Notifications
You must be signed in to change notification settings - Fork 31
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
Remove code-path for responding to Delete events #101
base: master
Are you sure you want to change the base?
Conversation
Now that we are setting ownerReferences on the created objects kubernetes will take care of deleting them for us when the application is deleted, so we can remove all the code related to that. The delete methods for service, ingress and autoscaler are still needed for the case where the config changes such that they are no longer required, but now they can be private/internal methods.
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 this codepath can also be removed:
fiaas-deploy-daemon/fiaas_deploy_daemon/deployer/deploy.py
Lines 50 to 51 in f4cd341
elif event.action == "DELETE": | |
self._delete(event.app_spec) |
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.
LGTM 👍
Thanks for the reviews. As mentioned elsewhere, I'll wait on merging this until we are ready to trigger re-deploys of the apps in our clusters, I think it's relatively harmless being there and doing nothing in the short-term. |
Would be nice to just get this merged and out of the way, wouldn't it? 🙂 |
I think this PR needs to be merged or closed. |
Now that we are setting ownerReferences on the created objects
kubernetes will take care of deleting them for us when the application
is deleted, so we can remove all the code related to that.
The delete methods for service, ingress and autoscaler are still needed
for the case where the config changes such that they are no longer
required, but now they can be private/internal methods.