Skip to content

Commit

Permalink
fix: namespace referenece in cronjob (#122)
Browse files Browse the repository at this point in the history
* fix: namespace reference in cronjob

* version: bump version to 0.6.2
  • Loading branch information
punit-kulal authored Oct 11, 2024
1 parent acd8ba4 commit 9928903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.1
version: 0.6.2
3 changes: 2 additions & 1 deletion stable/app/templates/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
{{- $fullName := include "app.fullname" . -}}
{{- $appLabels := include "app.labels" . -}}
{{- $appSelectorLabels := include "app.selectorLabels" . -}}
{{- $appNamespace := include "app.namespace" . -}}
{{- range $i, $job := .Values.cron.jobs }}
apiVersion: batch/v1
kind: CronJob
metadata:
name: "{{ $fullName | trunc 24 }}-{{ $i }}-{{ $job.name | trunc 24}}"
namespace: "{{ include "app.namespace" . }}"
namespace: "{{ $appNamespace }}"
labels:
{{- $appLabels | nindent 4 }}
spec:
Expand Down

0 comments on commit 9928903

Please sign in to comment.