-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Automatically inject ownerReferences #49
Comments
I actually implemented something like that:
with
(in case someone comes across this issue and is looking for inspiration) @coryodaniel does this look like what you had in mind? |
Yeah! I think two similar controller methods would be good and accept a map (instead of a K8s.Operation.t). I think that the added event map might have the uid of the Custom Resource. |
Maybe accept optional params to toggle foreground/background and block owner deletion |
Inject
metadata.ownerReferences
into resources.I'm not positive the original idea below will work. Middleware is per cluster and it would need a per resource data to inject ownerReference.
Definitely worth looking into, but a simple solution for now could be to add an
add_owner_references/2
function to the Controller behavior.original idea
This will require
K8s.Middleware
to modify all JSON paylaods during a lifecycle eventRelated #79
The text was updated successfully, but these errors were encountered: