From 411d9caed3e923cb18e5c717f2132f4f00e44197 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Fri, 24 May 2024 18:33:23 +0200 Subject: [PATCH] fix: properly use values in Helm Chart --- charts/publiccode-crawler/templates/cronjob.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/charts/publiccode-crawler/templates/cronjob.yaml b/charts/publiccode-crawler/templates/cronjob.yaml index 52ca8b2..6f67fdb 100644 --- a/charts/publiccode-crawler/templates/cronjob.yaml +++ b/charts/publiccode-crawler/templates/cronjob.yaml @@ -8,7 +8,7 @@ spec: successfulJobsHistoryLimit: 1 failedJobsHistoryLimit: 1 concurrencyPolicy: Forbid - schedule: "{{ .Values.publiccode-crawler.cronjob_schedule }}" + schedule: "{{ .Values.cronjob_schedule }}" jobTemplate: spec: template: @@ -21,8 +21,8 @@ spec: containers: - name: {{ template "publiccode-crawler.fullname" . }} - image: "{{ .Values.publiccode-crawler.image.repository }}:{{ tpl .Values.publiccode-crawler.image.tag . }}" - imagePullPolicy: {{ .Values.publiccode-crawler.image.pullPolicy }} + image: "{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} command: - /bin/bash @@ -35,14 +35,14 @@ spec: name: secrets-store resources: - {{- toYaml .Values.publiccode-crawler.resources. | indent 14 }} + {{- toYaml .Values.resources. | indent 14 }} env: - name: API_BASEURL - value: "{{ .Values.publiccode-crawler.env.API_BASEURL}}" + value: "{{ .Values.env.API_BASEURL}}" - name: MAIN_PUBLISHER_ID - value: "{{ .Values.publiccode-crawler.env.MAIN_PUBLISHER_ID }}" + value: "{{ .Values.env.MAIN_PUBLISHER_ID }}" - name: SKIP_VITALITY - value: "{{ .Values.publiccode-crawler.env.SKIP_VITALITY }}" + value: "{{ .Values.env.SKIP_VITALITY }}" - name: API_BEARER_TOKEN valueFrom: secretKeyRef: