Skip to content

Commit

Permalink
fix: properly use values in Helm Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed May 24, 2024
1 parent 133bccc commit 411d9ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions charts/publiccode-crawler/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
concurrencyPolicy: Forbid
schedule: "{{ .Values.publiccode-crawler.cronjob_schedule }}"
schedule: "{{ .Values.cronjob_schedule }}"
jobTemplate:
spec:
template:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 411d9ca

Please sign in to comment.