1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00
external-secrets/docs/snippets/1password-external-secret-my-cert.yaml
2022-05-08 17:01:26 -07:00

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.*"