From 792b59486bb930b06d0ffd16b5d936aad2290282 Mon Sep 17 00:00:00 2001 From: odubajDT <93584209+odubajDT@users.noreply.github.com> Date: Tue, 31 Oct 2023 09:46:43 +0100 Subject: [PATCH] test: adapt helm test not to use real image tags (#2383) Signed-off-by: odubajDT --- .github/scripts/.helm-tests/default/result.yaml | 8 ++++---- .github/scripts/.helm-tests/default/values.yaml | 10 ++++++++++ .../.helm-tests/lifecycle-with-certs/result.yaml | 6 +++--- .../.helm-tests/lifecycle-with-certs/values.yaml | 6 ++++++ .github/scripts/.helm-tests/metrics-only/result.yaml | 2 +- .github/scripts/.helm-tests/metrics-only/values.yaml | 2 ++ .../scripts/.helm-tests/metrics-with-certs/result.yaml | 4 ++-- .../scripts/.helm-tests/metrics-with-certs/values.yaml | 4 ++++ renovate.json | 3 +-- 9 files changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/scripts/.helm-tests/default/result.yaml b/.github/scripts/.helm-tests/default/result.yaml index 63551ea569..c9ca379883 100644 --- a/.github/scripts/.helm-tests/default/result.yaml +++ b/.github/scripts/.helm-tests/default/result.yaml @@ -8162,7 +8162,7 @@ spec: value: "true" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/certificate-operator:v1.2.0 + image: ghcr.io/keptn/certificate-operator:v0.0.0 imagePullPolicy: Always name: certificate-operator resources: @@ -8277,7 +8277,7 @@ spec: value: "false" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/lifecycle-operator:v0.8.2 + image: ghcr.io/keptn/lifecycle-operator:v0.0.0 imagePullPolicy: Always name: lifecycle-operator ports: @@ -8369,7 +8369,7 @@ spec: value: "otel-collector:4317" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/scheduler:v0.8.3 + image: ghcr.io/keptn/scheduler:v0.0.0 imagePullPolicy: Always name: scheduler resources: @@ -8472,7 +8472,7 @@ spec: value: "0" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/metrics-operator:v0.8.3 + image: ghcr.io/keptn/metrics-operator:v0.0.0 imagePullPolicy: Always name: metrics-operator ports: diff --git a/.github/scripts/.helm-tests/default/values.yaml b/.github/scripts/.helm-tests/default/values.yaml index 237c8278fb..6414898901 100644 --- a/.github/scripts/.helm-tests/default/values.yaml +++ b/.github/scripts/.helm-tests/default/values.yaml @@ -1,6 +1,16 @@ certManager: enabled: true + image: + tag: v0.0.0 lifecycleOperator: enabled: true + lifecycleOperator: + image: + tag: v0.0.0 + scheduler: + image: + tag: v0.0.0 metricsOperator: enabled: true + image: + tag: v0.0.0 diff --git a/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml b/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml index 156dcd4ce0..1a92c092e9 100644 --- a/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml +++ b/.github/scripts/.helm-tests/lifecycle-with-certs/result.yaml @@ -6666,7 +6666,7 @@ spec: value: "true" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/certificate-operator:v1.2.0 + image: ghcr.io/keptn/certificate-operator:v0.0.0 imagePullPolicy: Always name: certificate-operator resources: @@ -6781,7 +6781,7 @@ spec: value: "false" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/lifecycle-operator:v0.8.2 + image: ghcr.io/keptn/lifecycle-operator:v0.0.0 imagePullPolicy: Never name: lifecycle-operator ports: @@ -6873,7 +6873,7 @@ spec: value: "otel-collector:4317" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/scheduler:v0.8.3 + image: ghcr.io/keptn/scheduler:v0.0.0 imagePullPolicy: Never name: scheduler resources: diff --git a/.github/scripts/.helm-tests/lifecycle-with-certs/values.yaml b/.github/scripts/.helm-tests/lifecycle-with-certs/values.yaml index c8df0b81f3..693c3dc33d 100644 --- a/.github/scripts/.helm-tests/lifecycle-with-certs/values.yaml +++ b/.github/scripts/.helm-tests/lifecycle-with-certs/values.yaml @@ -1,10 +1,16 @@ certManager: enabled: true + image: + tag: v0.0.0 lifecycleOperator: enabled: true lifecycleOperator: imagePullPolicy: Never + image: + tag: v0.0.0 scheduler: imagePullPolicy: Never + image: + tag: v0.0.0 metricsOperator: enabled: false diff --git a/.github/scripts/.helm-tests/metrics-only/result.yaml b/.github/scripts/.helm-tests/metrics-only/result.yaml index 35246a0c08..81e477e12e 100644 --- a/.github/scripts/.helm-tests/metrics-only/result.yaml +++ b/.github/scripts/.helm-tests/metrics-only/result.yaml @@ -1555,7 +1555,7 @@ spec: value: "0" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/metrics-operator:v0.8.3 + image: ghcr.io/keptn/metrics-operator:v0.0.0 imagePullPolicy: Always name: metrics-operator ports: diff --git a/.github/scripts/.helm-tests/metrics-only/values.yaml b/.github/scripts/.helm-tests/metrics-only/values.yaml index 5d39e9b6bd..678d216379 100644 --- a/.github/scripts/.helm-tests/metrics-only/values.yaml +++ b/.github/scripts/.helm-tests/metrics-only/values.yaml @@ -4,3 +4,5 @@ lifecycleOperator: enabled: false metricsOperator: enabled: true + image: + tag: v0.0.0 diff --git a/.github/scripts/.helm-tests/metrics-with-certs/result.yaml b/.github/scripts/.helm-tests/metrics-with-certs/result.yaml index 94b6ca88af..edfed8faf0 100644 --- a/.github/scripts/.helm-tests/metrics-with-certs/result.yaml +++ b/.github/scripts/.helm-tests/metrics-with-certs/result.yaml @@ -1713,7 +1713,7 @@ spec: value: "true" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/certificate-operator:v1.2.0 + image: ghcr.io/keptn/certificate-operator:v0.0.0 imagePullPolicy: Always name: certificate-operator resources: @@ -1811,7 +1811,7 @@ spec: value: "0" - name: KUBERNETES_CLUSTER_DOMAIN value: cluster.local - image: ghcr.io/keptn/metrics-operator:v0.8.3 + image: ghcr.io/keptn/metrics-operator:v0.0.0 imagePullPolicy: Never name: metrics-operator ports: diff --git a/.github/scripts/.helm-tests/metrics-with-certs/values.yaml b/.github/scripts/.helm-tests/metrics-with-certs/values.yaml index 625676a0e3..6512e391fb 100644 --- a/.github/scripts/.helm-tests/metrics-with-certs/values.yaml +++ b/.github/scripts/.helm-tests/metrics-with-certs/values.yaml @@ -1,7 +1,11 @@ certManager: enabled: true + image: + tag: v0.0.0 lifecycleOperator: enabled: false metricsOperator: enabled: true + image: + tag: v0.0.0 imagePullPolicy: Never diff --git a/renovate.json b/renovate.json index 0d154a36b5..e51aba51fc 100644 --- a/renovate.json +++ b/renovate.json @@ -78,8 +78,7 @@ "kubernetes": { "fileMatch": [ "examples\\/.*\\.ya?ml$", - "test\\/.*\\.ya?ml$", - ".github\\/scripts\\/.helm-tests\\/.*\\/.*.ya?ml$" + "test\\/.*\\.ya?ml$" ], "packageRules": [ {