diff --git a/kubernetes/apps/networking/external-dns/unifi/externalsecret.yaml b/kubernetes/apps/networking/external-dns/unifi/externalsecret.yaml index 4ac477196b..4430bf45c3 100644 --- a/kubernetes/apps/networking/external-dns/unifi/externalsecret.yaml +++ b/kubernetes/apps/networking/external-dns/unifi/externalsecret.yaml @@ -13,8 +13,7 @@ spec: template: engineVersion: v2 data: - UNIFI_USER: "{{ .EXTERNAL_DNS_UNIFI_USER }}" - UNIFI_PASS: "{{ .EXTERNAL_DNS_UNIFI_PASS }}" + UNIFI_API_KEY: "{{ .UNIFI_API_KEY }}" dataFrom: - extract: key: unifi diff --git a/kubernetes/apps/networking/external-dns/unifi/helmrelease.yaml b/kubernetes/apps/networking/external-dns/unifi/helmrelease.yaml index 8716d95752..aeb4a35e28 100644 --- a/kubernetes/apps/networking/external-dns/unifi/helmrelease.yaml +++ b/kubernetes/apps/networking/external-dns/unifi/helmrelease.yaml @@ -37,15 +37,10 @@ spec: env: - name: UNIFI_HOST value: https://unifi.internal - - name: &name UNIFI_USER + - name: &name UNIFI_API_KEY valueFrom: secretKeyRef: - name: &secret external-dns-unifi-secret - key: *name - - name: &name UNIFI_PASS - valueFrom: - secretKeyRef: - name: *secret + name: external-dns-unifi-secret key: *name livenessProbe: httpGet: