From fd35f3f9cff99f4dde0f453371701168f0d5b4cb Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 22 Apr 2025 13:30:59 +0300 Subject: [PATCH 1/2] feat: add gitops-operator-default pulling interval --- charts/gitops-runtime/templates/gitops-operator.yaml | 4 ++++ charts/gitops-runtime/values.yaml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/gitops-runtime/templates/gitops-operator.yaml b/charts/gitops-runtime/templates/gitops-operator.yaml index 556edeae..57a05414 100644 --- a/charts/gitops-runtime/templates/gitops-operator.yaml +++ b/charts/gitops-runtime/templates/gitops-operator.yaml @@ -76,6 +76,10 @@ {{- include "gitops-operator.resources" $gitopsOperatorContext}} + {{/* Set DEFAULT_TASK_PULLING_INTERVAL */}} + {{- if not (index .Values "gitops-operator").env.TASK_PULLING_INTERVAL }} + {{- $_ := set $gitopsOperatorContext.Values.env "TASK_PULLING_INTERVAL" "10s" }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/gitops-runtime/values.yaml b/charts/gitops-runtime/values.yaml index 2c644edc..31395db7 100644 --- a/charts/gitops-runtime/values.yaml +++ b/charts/gitops-runtime/values.yaml @@ -662,7 +662,9 @@ gitops-operator: # -- Additional labels for gitops operator CRDs additionalLabels: {} - env: {} + env: { + TASK_PULLING_INTERVAL: 10s + } image: {} # -- defaults # repository: quay.io/codefresh/codefresh-gitops-operator From 42a2590e3ec44c3e2173327f0bc68dde42c1785f Mon Sep 17 00:00:00 2001 From: Kim Date: Tue, 22 Apr 2025 13:49:13 +0300 Subject: [PATCH 2/2] env will be set only in gitops-runtime-helm chart values --- charts/gitops-runtime/templates/gitops-operator.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/charts/gitops-runtime/templates/gitops-operator.yaml b/charts/gitops-runtime/templates/gitops-operator.yaml index 57a05414..556edeae 100644 --- a/charts/gitops-runtime/templates/gitops-operator.yaml +++ b/charts/gitops-runtime/templates/gitops-operator.yaml @@ -76,10 +76,6 @@ {{- include "gitops-operator.resources" $gitopsOperatorContext}} - {{/* Set DEFAULT_TASK_PULLING_INTERVAL */}} - {{- if not (index .Values "gitops-operator").env.TASK_PULLING_INTERVAL }} - {{- $_ := set $gitopsOperatorContext.Values.env "TASK_PULLING_INTERVAL" "10s" }} - {{- end }} {{- end }} {{- end }}