Externally managed .data fields in generated Secrets (AKA preserve unknown .data fields on Secret Update) #821
Labels
backlog
Issues/PRs that will be included in the project roadmap
enhancement
help wanted
Feature requests approved by maintainers that are not included in the project roadmap
Which component:
Controller v0.17.2
Is your feature request related to a problem? Please describe.
I have an "operator"/controller separate from the SealedSecretsController which should manage (via Patch method) some .data keys in a Secret. The Secret itself is created from a SealedSecret.
In other words, I have this SealedSecret...
...which results in this Secret (redundant fields removed)...
...and I want to separately Patch-in the field
.data.non-ss-key
like so:Unfortunately, shortly after the separate controller Patches the
.data.non-ss-key
field in, the SealedSecretsController Updates the Secret and wipes out the extra key.Describe the solution you'd like
I would like to see SealedSecretsController preserving data keys which are not part of the owning SealedSecret.
Even ignoring a separate controller, I would like to have the possibility of manually adding more .data fields to the generated Secret without them being deleted by the SealedSecretsController.
Describe alternatives you've considered
Right now we're looking into a workaround to "compile" a second Secret to be the one used by the end application, and the Secret owned by the SealedSecret is just used as input to compile this second Secret.
Additional context
none
The text was updated successfully, but these errors were encountered: