From 5f04697dd905ab8b36f7280043adf8c243c4492e Mon Sep 17 00:00:00 2001 From: Raiko Koosaar Date: Wed, 21 Aug 2024 19:31:49 +0000 Subject: [PATCH] unifi webook change #2 --- .../external-dns/unifi/helmrelease.yaml | 9 ++++----- .../external-dns/unifi/secret.sops.yaml | 20 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/kubernetes/apps/network/external-dns/unifi/helmrelease.yaml b/kubernetes/apps/network/external-dns/unifi/helmrelease.yaml index ad3e0d0a..c86ef9ad 100644 --- a/kubernetes/apps/network/external-dns/unifi/helmrelease.yaml +++ b/kubernetes/apps/network/external-dns/unifi/helmrelease.yaml @@ -33,11 +33,10 @@ spec: tag: v0.2.1@sha256:5690d19149103e1f9fa7bed6783e5e9c7935fd347487d0e3cafe02589b2173f2 env: - name: UNIFI_HOST - value: https://10.1.1.1 - # valueFrom: - # secretKeyRef: - # name: &secret external-dns-unifi-secret - # key: EXTERNAL_DNS_UNIFI_HOST + valueFrom: + secretKeyRef: + name: &secret external-dns-unifi-secret + key: EXTERNAL_DNS_UNIFI_HOST - name: UNIFI_USER valueFrom: secretKeyRef: diff --git a/kubernetes/apps/network/external-dns/unifi/secret.sops.yaml b/kubernetes/apps/network/external-dns/unifi/secret.sops.yaml index 8f81943c..b677d0a2 100644 --- a/kubernetes/apps/network/external-dns/unifi/secret.sops.yaml +++ b/kubernetes/apps/network/external-dns/unifi/secret.sops.yaml @@ -3,9 +3,9 @@ kind: Secret metadata: name: external-dns-unifi-secret stringData: - EXTERNAL_DNS_UNIFI_HOST: ENC[AES256_GCM,data:JyqZeyls2pAZskeOwAS9Jg==,iv:P5gvkzHw1rAjqyhNo1JY3rgfXxbKCrsH6XvKa181Wgw=,tag:8AM9D4KnRB9muR8Vuwegzg==,type:str] - EXTERNAL_DNS_UNIFI_USER: ENC[AES256_GCM,data:xSqDzgdD6wUerhITsx6et/GxIf79naigTeAWTVWafro=,iv:j1w4y+rEgL+pyVkCdDAYsgZA5DbdqEEb5/r0WwrqaRI=,tag:Cj11mLxmHOdlKScyrV698Q==,type:str] - EXTERNAL_DNS_UNIFI_PASS: ENC[AES256_GCM,data:sLEdWTfS52msU00NmUytESNJMX1uR4E7Dm45fd4od2KDpYqFwEUTMvRRr9U=,iv:5d13O4m6e9VQzF2z2nuHMWx5OSTpR5HgNmCiOwCDZGA=,tag:FCPVuCBBX8tNbD9t2TMqlw==,type:str] + EXTERNAL_DNS_UNIFI_HOST: ENC[AES256_GCM,data:8c7uZm9mH3zv6kLOZ2+rig==,iv:Vdl5peXi1GgPLe9ZN5vlHDJJaME/MbDXMd82/Sqm0+0=,tag:u48tKE0g9w0h451K6VC7/A==,type:str] + EXTERNAL_DNS_UNIFI_USER: ENC[AES256_GCM,data:6lmm39Vb/+oaHHB6zzjjM4h6O5lKZe4=,iv:9ros7+Rodjl38eyBdgf3qY3rKC4z/ZnZ9FUgmaMnsQg=,tag:kaLbQxTCKqADzLrTpvxpAg==,type:str] + EXTERNAL_DNS_UNIFI_PASS: ENC[AES256_GCM,data:497b9P+9gV5wL0YjTMX8eoRKfo8=,iv:7/ytAmXvlFtpnyRap2iFY+Rm9wIMzPhGBO8WnwEmDoc=,tag:3KhAA2Bv6h9PXnFsJoVO+Q==,type:str] sops: kms: [] gcp_kms: [] @@ -15,14 +15,14 @@ sops: - recipient: age10x2a6rhd5v9kd5w4cn9jemdxch7ecsltw3mpynx4gttcdpsqhumqtkh6kf enc: | -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAxa0pBL1FwOHRsVEtQaWRr - aUtSUG9pc2Q1ZDdleUlZN1FIRWZjMFpmbmg4CmZPajZERTNMM2NKZFBpQWcyeEFF - eTVHekdHWHNRb1pBZWhmS3RFQ21BWUkKLS0tIERseWZzVlpsSTRVTVMzNld0bFZU - QWRSa29HcXZ3NElDMEF2NGtJWkM2VDgK6ESXE29epGAKoRYaZtXaeSggOwcVnMEV - UY6t8elx4694bkmsDokKkEO3S6AJbULJ5Rrb8EXkPBGAm1fJMi82BA== + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBjZVZPUjdMM0k1RkNYTW1D + cGxLdGNHclVxenRMZk1rZ214eWxjYk1TSUNVCmtDc3RIVkg1OTBLYm9MRWdTazdG + Y01JRTdTdXlhVWcvMkxGSXhCcTBockEKLS0tIEdsREd4REVwemdjWlRxR2dlS3Ix + MGNaOUhSd3JXUUl5NjN4RGkxSHkwOFUKb3jOFEMSIwUrRtU2wCATfQSV+lDw8OhV + KippTsQhTOEPL/oNIOo03sR19783clAS6Exuke6nz+tgziagljmXGA== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-08-21T17:27:58Z" - mac: ENC[AES256_GCM,data:X9sgu/Dbcub0QXp1QiC5pBkXCKINAp5lfLD36hA3XKi1BZgFILsSVRBztpzCHjiPi86VG35CKtqymtN2LDz3mbhPKxWwoSuTa3GxNLbG+1+iODYnLRsjeX9AAborwMJvZp8Ao17p1kA9dFEBoayazO+OXMaioY3Jt3IFBaNxioQ=,iv:lodpNP+2FAkqk7WJHQMRGy38LbrenQz2LhW79PePhJM=,tag:DCeOECL3hXHjjtAcM9njMQ==,type:str] + lastmodified: "2024-08-21T19:30:58Z" + mac: ENC[AES256_GCM,data:U+Pk1XNer3d1/VM4rsG4z+iZbkE1lbYTgnX4d6tQ2UMlO6sBpoJw5/LLd0ZpXAMrKRWbpmX8Qy2KxZfhQxud752rJx2FK7t1pI2CVmM7ciX28f+FMt/YF3dAsetWiEhEr7x/m6JBJefor2xlgOXX8cFyE160tl8+T0o0+vCXK94=,iv:YXscLrXUHeLpQkX3RUvmev0t+DSMvrro3wxXHQ2Glcs=,tag:di5GaoN/Ith/H7tPQrptdg==,type:str] pgp: [] encrypted_regex: ^(data|stringData)$ version: 3.9.0