mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
30 lines
597 B
YAML
30 lines
597 B
YAML
---
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: my-cert
|
|
spec:
|
|
secretStoreRef:
|
|
kind: SecretStore
|
|
name: staging
|
|
target:
|
|
creationPolicy: Owner
|
|
data:
|
|
- secretKey: cert.crt
|
|
remoteRef:
|
|
key: my-cert
|
|
property: cert.crt
|
|
- secretKey: cert.key
|
|
remoteRef:
|
|
key: my-cert
|
|
property: cert.key
|
|
# OR
|
|
dataFrom:
|
|
- extract:
|
|
key: my-cert
|
|
property: cert.key # optional field Label to match exactly
|
|
# OR
|
|
- find:
|
|
path: my-cert # optional Item Title to match exactly
|
|
name:
|
|
regexp: "^cert.*"
|