Skip to content

Commit

Permalink
Merge pull request #424 from holyspectral/fix-cronjob
Browse files Browse the repository at this point in the history
Fix an issue where cert-upgrader pod created by cronjob has no effect
  • Loading branch information
selvamt94 authored Aug 22, 2024
2 parents 7b1abaf + 6876d05 commit 02c44af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions charts/core/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ spec:
env:
- name: OVERRIDE_CHECKSUM
value: {{ dict "image" (include "neuvector.controller.image" .) "internal" .Values.internal "certupgrader" .Values.controller.certupgrader | toJson | sha256sum }}
{{- if and .Values.internal.autoRotateCert (not $pre540) }}
- name: ENABLE_ROTATION
value: "1"
{{- end }}
{{- with .Values.controller.certupgrader.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/core/templates/upgrader-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
command:
- /usr/local/bin/upgrader
- upgrader-job
{{- if and .Values.internal.autoRotateCert }}
- --enable-rotation
{{- end }}
env:
{{- with .Values.controller.certupgrader.env }}
{{- toYaml . | nindent 14 }}
Expand Down

0 comments on commit 02c44af

Please sign in to comment.