apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: ntfy-alertmanager-config-secret
  namespace: kube-prometheus-stack
  labels:
    app.kubernetes.io/name: ntfy-alertmanager-config-secret
    app.kubernetes.io/instance: kube-prometheus-stack
    app.kubernetes.io/part-of: kube-prometheus-stack
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: ntfy_password
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /cl01tl/kube-prometheus-stack/ntfy-alertmanager
        metadataPolicy: None
        property: ntfy_password
    - secretKey: config
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /cl01tl/kube-prometheus-stack/ntfy-alertmanager
        metadataPolicy: None
        property: config
