You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @tomklapka! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together!
To ensure that the generated Kubernetes Secret from an encrypted dotenv file uses data instead of stringData when using Kustomize SecretGenerator with KSOPS, you can use the secretFrom field in your secret-generator.yaml configuration. Here is an example configuration:
Create a Kubernetes Secret from an encrypted dotenv file ganerates a secret with
stringData
content e.g.:But Kustomize SecretGenerator generates secret with
data
content:Also in Kustomize doc (https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kustomize/) is a following note: The stringData field for a Secret does not work well with server-side apply.
It makes sense to me keeping up with Kustomize.
kustomize v5.3.0
kops v4.3.2
The text was updated successfully, but these errors were encountered: