From fdbe5c60b229fd98d5b197c17c4974feb4316d6f Mon Sep 17 00:00:00 2001 From: sergey Date: Thu, 16 Jun 2022 09:38:37 +0300 Subject: [PATCH] fix if-else conditions --- browser-ops/templates/cron-job.yaml | 5 +---- browser-ops/values.yaml | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/browser-ops/templates/cron-job.yaml b/browser-ops/templates/cron-job.yaml index f14a532..2758578 100644 --- a/browser-ops/templates/cron-job.yaml +++ b/browser-ops/templates/cron-job.yaml @@ -31,13 +31,10 @@ spec: - name: LIST {{- if eq "\"all\"" (.Values.browserImageVersions | quote) }} value: "0" - {{- else }} - {{- if eq "\"recent\"" (.Values.browserImageVersions | quote) }} + {{- else if eq "\"recent\"" (.Values.browserImageVersions | quote) }} value: "-1" {{- else }} value: {{ .Values.browserImageVersions | quote }} {{- end }} {{- end }} - {{- end }} restartPolicy: Never - diff --git a/browser-ops/values.yaml b/browser-ops/values.yaml index 89eba80..773231c 100644 --- a/browser-ops/values.yaml +++ b/browser-ops/values.yaml @@ -1,7 +1,6 @@ ## ## List of browsersets names to update ## - browsersets: - default @@ -10,17 +9,14 @@ browsersets: ## ## (102.0 vs 102.0.1245.30-1) ## - browserImageTagFormat: short ## -## Browser versions appeared in web interface: all | recent | positive number +## Browser versions appeared in web interface: all | recent | positive number(last N versions) ## - browserImageVersions: recent ## ## Schedule ## - schedule: "0 1 * * *"