apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: homepage-secrets
  namespace: homepage
  labels:
    app.kubernetes.io/name: homepage-secrets
    app.kubernetes.io/instance: homepage
    app.kubernetes.io/part-of: homepage
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao
  data:
    - secretKey: HOMEPAGE_VAR_GITEA_API_TOKEN
      remoteRef:
        key: /cl01tl/gitea/users/bot
        property: token
    - secretKey: HOMEPAGE_VAR_ARGOCD_API_TOKEN
      remoteRef:
        key: /cl01tl/argocd/credentials/homepage
        property: token
    - secretKey: HOMEPAGE_VAR_KOMODO_API_KEY
      remoteRef:
        key: /cl01tl/komodo/homepage
        property: key
    - secretKey: HOMEPAGE_VAR_KOMODO_API_SECRET
      remoteRef:
        key: /cl01tl/komodo/homepage
        property: secret
    - secretKey: HOMEPAGE_VAR_JELLYSTAT_API_KEY
      remoteRef:
        key: /cl01tl/jellystat/homepage
        property: key
    - secretKey: HOMEPAGE_VAR_SYNOLOGY_USER
      remoteRef:
        key: /synology/users/remote_stats
        property: user
    - secretKey: HOMEPAGE_VAR_SYNOLOGY_PASSWORD
      remoteRef:
        key: /synology/users/remote_stats
        property: password
    - secretKey: HOMEPAGE_VAR_UNIFI_API_KEY
      remoteRef:
        key: /unifi/users/cl01tl
        property: api-key
    - secretKey: HOMEPAGE_VAR_SONARR_KEY
      remoteRef:
        key: /cl01tl/sonarr/key
        property: key
    - secretKey: HOMEPAGE_VAR_SONARR4K_KEY
      remoteRef:
        key: /cl01tl/sonarr-4k/key
        property: key
    - secretKey: HOMEPAGE_VAR_SONARRANIME_KEY
      remoteRef:
        key: /cl01tl/sonarr-anime/key
        property: key
    - secretKey: HOMEPAGE_VAR_RADARR_KEY
      remoteRef:
        key: /cl01tl/radarr/key
        property: key
    - secretKey: HOMEPAGE_VAR_RADARR4K_KEY
      remoteRef:
        key: /cl01tl/radarr-4k/key
        property: key
    - secretKey: HOMEPAGE_VAR_RADARRANIME_KEY
      remoteRef:
        key: /cl01tl/radarr-anime/key
        property: key
    - secretKey: HOMEPAGE_VAR_RADARRSTANDUP_KEY
      remoteRef:
        key: /cl01tl/radarr-standup/key
        property: key
    - secretKey: HOMEPAGE_VAR_LIDARR_KEY
      remoteRef:
        key: /cl01tl/lidarr/key
        property: key
    - secretKey: HOMEPAGE_VAR_PROWLARR_KEY
      remoteRef:
        key: /cl01tl/prowlarr/key
        property: key
