1password-external-secret-my-env-config.yaml 643 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. apiVersion: external-secrets.io/v1
  3. kind: ExternalSecret
  4. metadata:
  5. name: my-env-config
  6. spec:
  7. secretStoreRef:
  8. kind: SecretStore
  9. name: staging
  10. target:
  11. creationPolicy: Owner
  12. data:
  13. - secretKey: MY_ENV_VAR1
  14. remoteRef:
  15. key: my-env-config
  16. property: MY_ENV_VAR1
  17. - secretKey: MY_ENV_VAR2
  18. remoteRef:
  19. key: my-env-config
  20. property: MY_ENV_VAR2
  21. # OR
  22. dataFrom:
  23. - extract:
  24. key: my-env-config
  25. property: MY_ENV_VAR1 # optional field Label to match exactly
  26. # OR
  27. - find:
  28. path: my-env-config # optional Item Title to match exactly
  29. name:
  30. regexp: "^MY_ENV_VAR.*"