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

31 lines
597 B
YAML
Raw Normal View History

2021-11-02 09:03:35 +00:00
---
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.*"