Open aarguello opened 3 weeks ago
Thanks for the recommendation, @aarguello! I like your initial proposal for defining labels
on the managedSecret
object. If you're up for it, a PR for this feature would be much appreciated!
I was running into the exact same issue!
It would be nice to support annotations as well.
I'll set aside some time next week to submit a PR!
Problem
The
DopplerSecret
CRD does not have a field to set labels on the Secret it manages. This prevents me to manage ArgoCD cluster and repository credentials using Doppler because ArgoCD determines a secret's purpose based on its label, particularlyargocd.argoproj.io/secret-type: cluster | repository | repo-creds
.Proposal
Add a
labels
field undermanagedSecret
, so that I could declare something like the following:Another alternative would be to replicate the labels of the
DopplerSecret
to theSecret
.Please let me know if you think this feature makes sense and, if it does, whether you'd like me to send a PR for it or prefer that the project maintainers handle it.
References