isindir / sops-secrets-operator

Kubernetes SOPS secrets operator
Mozilla Public License 2.0
323 stars 30 forks source link

Rename template secret field data and add stringData to match k8s secret #71

Closed isindir closed 3 years ago

isindir commented 3 years ago

Rename template secret field data and add stringData to match k8s secret

v1alpha2 version of SopsSecret uses data field to map to stringData while creating k8s Secret object. Create new v1alpha3 and map SopsSecret:data to Secret:data and SopsSeceret:stringData to Secret:stringData.

Add a check for all names being unique - fail reconciliation if that is not the case (do not reschedule reconsile loop, user must fix the secret).

isindir commented 3 years ago

This issue raised in #63 , but needs to match upstream Secret object fileds.

isindir commented 3 years ago

Closed by #76