diff --git a/charts/service/Chart.yaml b/charts/service/Chart.yaml index b8234a0..0f2c6fa 100644 --- a/charts/service/Chart.yaml +++ b/charts/service/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: service description: A generic k8s service chart type: application -version: 1.8.9 +version: 1.8.10 maintainers: - email: devops@codecademy.com name: devops diff --git a/charts/service/ci/custom-values.yaml b/charts/service/ci/custom-values.yaml index 38fe81f..ad2806e 100644 --- a/charts/service/ci/custom-values.yaml +++ b/charts/service/ci/custom-values.yaml @@ -88,6 +88,19 @@ cronJobs: cpu: 10m memory: 50Mi schedule: "* * * * *" + - name: bar + image: alpine + tag: "3.16" + command: ["echo", "FOOBAR"] + useParentEnv: false + resources: + requests: + cpu: 10m + memory: 50Mi + limits: + cpu: 10m + memory: 50Mi + schedule: "* * * * *" hostAliases: - ip: 0.0.0.0 diff --git a/charts/service/templates/cronjob.yaml b/charts/service/templates/cronjob.yaml index 82bc993..b515b13 100644 --- a/charts/service/templates/cronjob.yaml +++ b/charts/service/templates/cronjob.yaml @@ -29,7 +29,7 @@ spec: spec: serviceAccountName: {{ $serviceAccountName }} containers: - - image: "{{ $image }}:{{ $tag }}" + - image: "{{ .image | default $image }}:{{ .tag | default $tag }}" imagePullPolicy: {{ $imagePullPolicy }} name: {{ .name }} env: