From 1a67042c3446d05465d595d854a0552249b6b424 Mon Sep 17 00:00:00 2001 From: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Tue, 27 Aug 2024 11:30:16 +0200 Subject: [PATCH] local-cluster: Declare the masking-proxy database. It must be initialized manually for the moment Related to swh/infra/sysadm-environment#5391 --- cluster-components/values/local-cluster.yaml | 7 +++++++ swh/fake-secrets/swh-postgresql-secrets.yaml | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/cluster-components/values/local-cluster.yaml b/cluster-components/values/local-cluster.yaml index 0a3054fda..668aeef4d 100644 --- a/cluster-components/values/local-cluster.yaml +++ b/cluster-components/values/local-cluster.yaml @@ -101,6 +101,13 @@ cloudnativePg: secretKeyRef: swh-swh-postgresql-secret databases: - swh + maskingproxy: + enabled: true + initdb: + type: microservice + secretKeyRef: swh-maskingproxy-postgresql-secret + databases: + - swhmaskingproxy scheduler: enabled: true initdb: diff --git a/swh/fake-secrets/swh-postgresql-secrets.yaml b/swh/fake-secrets/swh-postgresql-secrets.yaml index d5bfd02cb..8f9edb06b 100644 --- a/swh/fake-secrets/swh-postgresql-secrets.yaml +++ b/swh/fake-secrets/swh-postgresql-secrets.yaml @@ -13,6 +13,17 @@ stringData: apiVersion: v1 kind: Secret type: kubernetes.io/basic-auth +metadata: + name: swh-maskingproxy-postgresql-secret + labels: + cnpg.io/reload: "true" +stringData: + username: swhmaskingproxy + password: mppassword +--- +apiVersion: v1 +kind: Secret +type: kubernetes.io/basic-auth metadata: name: swh-guest-postgresql-secret labels: -- GitLab