apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: grafana-auth-secret
  namespace: grafana-operator
  labels:
    app.kubernetes.io/name: grafana-auth-secret
    app.kubernetes.io/instance: grafana-operator
    app.kubernetes.io/part-of: grafana-operator
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: admin-user
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /cl01tl/grafana/auth
        metadataPolicy: None
        property: admin-user
    - secretKey: admin-password
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /cl01tl/grafana/auth
        metadataPolicy: None
        property: admin-password
