1passwordsdk-push-secret.yaml 792 B

12345678910111213141516171819202122232425
  1. ---
  2. apiVersion: external-secrets.io/v1alpha1
  3. kind: PushSecret
  4. metadata:
  5. name: pushsecret-example # Customisable
  6. spec:
  7. deletionPolicy: Delete
  8. refreshInterval: 1h0m0s
  9. secretStoreRefs:
  10. - name: onepassword
  11. kind: SecretStore
  12. selector:
  13. secret:
  14. name: source-secret # Source Kubernetes secret
  15. data:
  16. - match:
  17. secretKey: source-key # Source Kubernetes secret key to be pushed
  18. remoteRef:
  19. remoteKey: 1pw-secret-name # 1Password item/secret name
  20. property: password # (Optional) 1Password field type, default password
  21. metadata:
  22. apiVersion: kubernetes.external-secrets.io/v1alpha1
  23. kind: PushSecretMetadata
  24. spec:
  25. tags: ["tag1", "tag2"] # Optional metadata to be pushed with the secret