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

Automatic cleanup of JuiceShop on uninstall #29

Merged
merged 4 commits into from
Jan 8, 2020

Conversation

J12934
Copy link
Member

@J12934 J12934 commented Jan 8, 2020

JuiceShop Instances are now properly linked to the JuiceBalancer they were created by.
This is done by using the kubernetes ownerReferences: https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/

When the Stack gets uninstalled all JuiceShop Instances and Services are automatically cleaned up by kubernetes.

This has the nice side effect that the awesome tool kubectl-tree now works properly:
Screenshot 2020-01-08 at 14 49 01

J12934 added 4 commits January 8, 2020 12:54
Referencing `metadata.uid` isn't enought as this can only access values from the pod, not the deployment.
This isn't true anymore as deleting the JuiceBalancer will automatically cleanup related instances.
@J12934 J12934 added the enhancement New feature or request label Jan 8, 2020
@J12934 J12934 merged commit 48a7a9c into master Jan 8, 2020
@J12934 J12934 deleted the automatic-juice-shop-cleanup branch January 8, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant