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

  data:
    - secretKey: username # Key given to the secret to be created on the cluster
      remoteRef: 
        key: Production.mySecret
        property: login # field named in passworddepot
