From 38bbfa07bc9537efd5e3b1ec47bf3cd590d8c5d1 Mon Sep 17 00:00:00 2001 From: Leandro Mendes Date: Mon, 16 Dec 2024 14:21:18 +0100 Subject: [PATCH] chore: add secret information to release-monitor (#5154) this PR adds the secret reference so the release-monitor can use it to check the release required endpoints Signed-off-by: Leandro Mendes --- .../release/base/monitor/staging/configmap.yaml | 2 +- .../base/monitor/staging/kustomization.yaml | 3 +++ .../staging/patches/env-secrets-patch.yaml | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 components/release/base/monitor/staging/patches/env-secrets-patch.yaml diff --git a/components/release/base/monitor/staging/configmap.yaml b/components/release/base/monitor/staging/configmap.yaml index 7bc119fb411..33410e792e4 100644 --- a/components/release/base/monitor/staging/configmap.yaml +++ b/components/release/base/monitor/staging/configmap.yaml @@ -20,7 +20,7 @@ data: pullspec: quay.io/konflux-ci/release-service-utils http: - name: pyxis - url: https://pyxis.nonprod.redhat.com/v1/ping + url: https://pyxis.preprod.api.redhat.com/v1/ping insecure: true kind: ConfigMap metadata: diff --git a/components/release/base/monitor/staging/kustomization.yaml b/components/release/base/monitor/staging/kustomization.yaml index 19223782dff..fb275095a35 100644 --- a/components/release/base/monitor/staging/kustomization.yaml +++ b/components/release/base/monitor/staging/kustomization.yaml @@ -9,4 +9,7 @@ images: newName: quay.io/konflux-ci/release-service-monitor newTag: 73e63a3db71ab5084150b31277710aabff613b03 +patches: + - path: patches/env-secrets-patch.yaml + namespace: release-service diff --git a/components/release/base/monitor/staging/patches/env-secrets-patch.yaml b/components/release/base/monitor/staging/patches/env-secrets-patch.yaml new file mode 100644 index 00000000000..6e31a45bc72 --- /dev/null +++ b/components/release/base/monitor/staging/patches/env-secrets-patch.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: release-service-monitor-deployment + namespace: release-service +spec: + template: + spec: + containers: + - name: release-service-monitor + env: + - name: GITHUB_GIT_TOKEN + valueFrom: + secretKeyRef: + name: release-monitor-secret + key: github_token +