Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Add ownerreference to remove created secret when external secret is removed #95

Merged
merged 2 commits into from
Jun 21, 2019

Conversation

Flydiverny
Copy link
Member

@Flydiverny Flydiverny commented Jun 19, 2019

Fixes #93

Not sure how you would like it configureable and what kind of defaults?

Figured I'd just draft a PR first 😄

Im abit unsure about whether I plugged it in, in the right place. Seeing how secretDescriptors is an array being sent around, but its always just one?

I could add the ownerReference into the secretDescriptor object (https://github.com/godaddy/kubernetes-external-secrets/pull/95/files#diff-5c2754430010d5f3e95b45e1bb36d58bR55) but it feels weird to put it in there as well as its just some metadata and not part of the secretDescriptor

Copy link
Contributor

@silasbw silasbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for submitting this 💯!

@JacopoDaeli can you do a once over too?

Copy link
Contributor

@jeffpearce jeffpearce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether Travis failure is transient or related, but this lgtm

@Flydiverny
Copy link
Member Author

Didn't update test yet so Travis is legit in failing :) I can update tomorrow #EUtime

@Flydiverny
Copy link
Member Author

Test updated

@jeffpearce
Copy link
Contributor

Thanks for the PR @Flydiverny !

@jeffpearce jeffpearce merged commit 66af903 into external-secrets:master Jun 21, 2019
@Flydiverny Flydiverny deleted the feat/ownerreference branch June 21, 2019 21:14
@silasbw
Copy link
Contributor

silasbw commented Jun 22, 2019

This change is included in godaddy/kubernetes-external-secrets:1.3.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete secret when externalsecret is removed
3 participants