Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
devops-mher committed Oct 11, 2023
1 parent 615c635 commit 8b8b25e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: backend
description: Helm chart scaffolding for Backend applications.
type: application
version: 3.6.7
version: 3.6.8
appVersion: 1.3.0
7 changes: 2 additions & 5 deletions charts/backend/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ spec:
{{- end }}
{{- end }}

{{- if .Values.cronjob.config.env }}
{{- with .Values.cronjob.extraEnv }}
env:
{{- range $k, $v := .Values.cronjob.config.env }}
- name: "{{ $k }}"
value: "{{ $v }}"
{{- end }}
{{- toYaml . | nindent 12 }}
{{- end }}

{{- if .Values.cronjob.config.secrets }}
Expand Down
4 changes: 1 addition & 3 deletions charts/backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ cronjob:
isRepositoryPublic: true
# -- The image pullPolicy to use
pullPolicy: "IfNotPresent"

extraEnv: []
config:
command: []
# - "/bin/sh"
Expand All @@ -316,8 +316,6 @@ cronjob:
# - "echo 'Environment $(hello_env)! Secret $(username).'"

# -- Map of environment variables to use within the job
env: {}
# hello_env: "world"

# -- Map of secrets that will be exposed as environment variables within the job
secrets: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: frontend
description: A frontend Helm chart for Kubernetes
type: application
version: 3.6.7
version: 3.6.8
appVersion: "0.3.10"
7 changes: 2 additions & 5 deletions charts/frontend/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ spec:
{{- end }}
{{- end }}

{{- if .Values.cronjob.config.env }}
{{- with .Values.cronjob.extraEnv }}
env:
{{- range $k, $v := .Values.cronjob.config.env }}
- name: "{{ $k }}"
value: "{{ $v }}"
{{- end }}
{{- toYaml . | nindent 12 }}
{{- end }}

{{- if .Values.cronjob.config.secrets }}
Expand Down
4 changes: 1 addition & 3 deletions charts/frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ cronjob:
isRepositoryPublic: true
# -- The image pullPolicy to use
pullPolicy: "IfNotPresent"

extraEnv: []
config:
command: []
# - "/bin/sh"
Expand All @@ -242,8 +242,6 @@ cronjob:
# - "echo 'Environment $(hello_env)! Secret $(username).'"

# -- Map of environment variables to use within the job
env: {}
# hello_env: "world"

# -- Map of secrets that will be exposed as environment variables within the job
secrets: {}
Expand Down

0 comments on commit 8b8b25e

Please sign in to comment.