mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-15 17:51:01 +00:00
30 lines
648 B
YAML
30 lines
648 B
YAML
---
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: my-env-config
|
|
spec:
|
|
secretStoreRef:
|
|
kind: SecretStore
|
|
name: staging
|
|
target:
|
|
creationPolicy: Owner
|
|
data:
|
|
- secretKey: MY_ENV_VAR1
|
|
remoteRef:
|
|
key: my-env-config
|
|
property: MY_ENV_VAR1
|
|
- secretKey: MY_ENV_VAR2
|
|
remoteRef:
|
|
key: my-env-config
|
|
property: MY_ENV_VAR2
|
|
# OR
|
|
dataFrom:
|
|
- extract:
|
|
key: my-env-config
|
|
property: MY_ENV_VAR1 # optional field Label to match exactly
|
|
# OR
|
|
- find:
|
|
path: my-env-config # optional Item Title to match exactly
|
|
name:
|
|
regexp: "^MY_ENV_VAR.*"
|