apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
  name: passworddepot-external-secret-example
spec:
  refreshInterval: 1h

  secretStoreRef:
    kind: SecretStore
    name: passworddepot-secret-store # Must match SecretStore on the cluster

  target:
    name: passworddepot-secret-to-create # Name for the secret to be created on the cluster
    creationPolicy: Owner

  # each property in the secret will be used as the secret key in the SECRET k8s target object
  dataFrom:
  - key: "Production.mySecret" # Key of the secret
