diff --git a/charts/datapipe/CHANGELOG.md b/charts/datapipe/CHANGELOG.md index 21ee277..1f6b4ec 100644 --- a/charts/datapipe/CHANGELOG.md +++ b/charts/datapipe/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.2.2 + +* Include `fullName` into `CronJob` name + # 0.2.1 * Add support for `.Values.env` to loop-cronjob diff --git a/charts/datapipe/Chart.yaml b/charts/datapipe/Chart.yaml index 8f0197e..bb6d62f 100644 --- a/charts/datapipe/Chart.yaml +++ b/charts/datapipe/Chart.yaml @@ -15,7 +15,7 @@ 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.2.1 +version: 0.2.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/datapipe/templates/loops-cronjob.yaml b/charts/datapipe/templates/loops-cronjob.yaml index 5d63bcb..6b2e765 100644 --- a/charts/datapipe/templates/loops-cronjob.yaml +++ b/charts/datapipe/templates/loops-cronjob.yaml @@ -2,13 +2,14 @@ # for each .Values.loops item, create a cronjob {{ $labels := include "datapipe.labels" . }} +{{ $fullName := include "datapipe.fullname" . }} {{- range .Values.loops }} apiVersion: batch/v1 kind: CronJob metadata: - name: {{ .name }} + name: {{ $fullName}}-{{ .name }} labels: {{- $labels | nindent 4 }} spec: diff --git a/charts/datapipe/tests/__snapshot__/simple_test.yaml.snap b/charts/datapipe/tests/__snapshot__/simple_test.yaml.snap index 66752c7..884e2f2 100644 --- a/charts/datapipe/tests/__snapshot__/simple_test.yaml.snap +++ b/charts/datapipe/tests/__snapshot__/simple_test.yaml.snap @@ -9,7 +9,7 @@ All manifests should match snapshot: app.kubernetes.io/name: datapipe app.kubernetes.io/version: 1.16.0 helm.sh/chart: datapipe-0.1.0 - name: loop-hourly + name: datapipe-loop-hourly spec: concurrencyPolicy: Forbid jobTemplate: @@ -42,7 +42,7 @@ All manifests should match snapshot: app.kubernetes.io/name: datapipe app.kubernetes.io/version: 1.16.0 helm.sh/chart: datapipe-0.1.0 - name: loop-daily + name: datapipe-loop-daily spec: concurrencyPolicy: Forbid jobTemplate: