Skip to content

Commit

Permalink
fix(clickhouse-monitoring): add restart policy (#181)
Browse files Browse the repository at this point in the history
* feat(clickhouse-monitoring): add cronjob

* fix(clickhouse-monitoring): fix type, add docs

* fix(clickhouse-monitoring): cronjob api version for older k8s version

* fix(clickhouse-monitoring): fix release

* fix(clickhouse-monitoring): fix release

* fix(clickhouse-monitoring): add restart policy
  • Loading branch information
duyet authored Jun 30, 2024
1 parent 1ae2d0a commit 98b0e58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clickhouse-monitoring/templates/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{- if $.Values.cronjob.enabled }}
{{- range $endpoint := $.Values.cronjob.endpoints }}

---
apiVersion: {{ include "clickhouse-monitoring.cronJobApiVersion" $ }}
kind: CronJob
Expand Down Expand Up @@ -30,13 +29,12 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
restartPolicy: {{ $.Values.cronjob.restartPolicy | default "OnFailure" }}
securityContext:
{{- toYaml $.Values.podSecurityContext | nindent 12 }}
restartPolicy: {{- $.Values.cronjob.restartPolicy | default "OnFailure" }}
containers:
- name: {{ $.Chart.Name }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 16 }}
{{- with $.Values.cronjob.image }}
image: "{{ .repository }}:{{ .tag }}"
imagePullPolicy: {{ .pullPolicy | default $.Values.image.pullPolicy }}
Expand Down

0 comments on commit 98b0e58

Please sign in to comment.