Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Mandatory configs
kind: Job
kind: CronJob

jobConfigs:
backoffLimit: 5
Expand All @@ -17,7 +17,32 @@ cronjobConfigs:
failedJobsHistoryLimit: 1
restartPolicy: OnFailure
timeZone: "UTC"

cronJobAnnotations: {}
cronJobLabels: {}
LivenessProbe:
Path: ""
command: []
failureThreshold: 3
httpHeaders: []
initialDelaySeconds: 20
periodSeconds: 10
port: 8080
scheme: ""
successThreshold: 1
tcp: false
timeoutSeconds: 5
ReadinessProbe:
Path: ""
command: []
failureThreshold: 3
httpHeaders: []
initialDelaySeconds: 20
periodSeconds: 10
port: 8080
scheme: ""
successThreshold: 1
tcp: false
timeoutSeconds: 5
kedaAutoscaling:
envSourceContainerName: ""
minReplicaCount: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,79 @@ containers:
{{- if $.Values.containerExtraSpecs }}
{{ toYaml .Values.containerExtraSpecs | indent 4 }}
{{- end }}
{{- if $.Values.LivenessProbe }}
{{- if or $.Values.LivenessProbe.Path $.Values.LivenessProbe.command $.Values.LivenessProbe.tcp $.Values.LivenessProbe.grpc }}
livenessProbe:
{{- if $.Values.LivenessProbe.Path }}
httpGet:
path: {{ $.Values.LivenessProbe.Path }}
port: {{ $.Values.LivenessProbe.port }}
scheme: {{ $.Values.LivenessProbe.scheme }}
{{- if $.Values.LivenessProbe.httpHeaders }}
httpHeaders:
{{- range $.Values.LivenessProbe.httpHeaders}}
- name: {{.name}}
value: {{.value}}
{{- end}}
{{- end }}
{{- end }}
{{- if $.Values.LivenessProbe.command }}
exec:
command:
{{ toYaml .Values.LivenessProbe.command | indent 16 }}
{{- end}}
{{- if and $.Values.LivenessProbe.tcp }}
tcpSocket:
port: {{ $.Values.LivenessProbe.port }}
{{- end}}
initialDelaySeconds: {{ $.Values.LivenessProbe.initialDelaySeconds }}
periodSeconds: {{ $.Values.LivenessProbe.periodSeconds }}
successThreshold: {{ $.Values.LivenessProbe.successThreshold }}
timeoutSeconds: {{ $.Values.LivenessProbe.timeoutSeconds }}
failureThreshold: {{ $.Values.LivenessProbe.failureThreshold }}
{{- if $.Values.LivenessProbe.grpc }}
grpc:
{{ toYaml .Values.LivenessProbe.grpc | indent 14 }}
{{- end }}
{{- end }}
{{- end }}
{{- if $.Values.ReadinessProbe }}
{{- if or $.Values.ReadinessProbe.Path $.Values.ReadinessProbe.command $.Values.ReadinessProbe.tcp $.Values.ReadinessProbe.grpc }}
readinessProbe:
{{- if $.Values.ReadinessProbe.Path }}
httpGet:
path: {{ $.Values.ReadinessProbe.Path }}
port: {{ $.Values.ReadinessProbe.port }}
scheme: {{ $.Values.ReadinessProbe.scheme }}
{{- if $.Values.ReadinessProbe.httpHeaders }}
httpHeaders:
{{- range $.Values.ReadinessProbe.httpHeaders}}
- name: {{.name}}
value: {{.value}}
{{- end}}
{{- end }}
{{- end }}
{{- if $.Values.ReadinessProbe.command }}
exec:
command:
{{ toYaml .Values.ReadinessProbe.command | indent 16 }}
{{- end}}
{{- if and $.Values.ReadinessProbe.tcp }}
tcpSocket:
port: {{ $.Values.ReadinessProbe.port }}
{{- end}}
initialDelaySeconds: {{ $.Values.ReadinessProbe.initialDelaySeconds }}
periodSeconds: {{ $.Values.ReadinessProbe.periodSeconds }}
successThreshold: {{ $.Values.ReadinessProbe.successThreshold }}
timeoutSeconds: {{ $.Values.ReadinessProbe.timeoutSeconds }}
failureThreshold: {{ $.Values.ReadinessProbe.failureThreshold }}
{{- if $.Values.ReadinessProbe.grpc }}
grpc:
{{ toYaml .Values.ReadinessProbe.grpc | indent 14 }}
{{- end}}
{{- end }}
{{- end }}

{{- if $.Values.privileged }}
securityContext:
privileged: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ metadata:
chart: {{ template ".Chart.Name .chart" $ }}
release: {{ $.Release.Name }}
releaseVersion: {{ $.Values.releaseVersion | quote }}
{{- if .Values.cronJobLabels }}
{{ toYaml .Values.cronJobLabels | indent 4 }}
{{- end }}
{{- if .Values.cronJobAnnotations }}
annotations:
{{ toYaml .Values.cronJobAnnotations | indent 4 }}
{{- end }}
spec:
{{- if $.Values.cronjobConfigs }}
{{- if $.Values.cronjobConfigs.timeZone }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ ContainerPort:
# port: 8090
# servicePort: 8080
# useGRPC: true
LivenessProbe:
Path: ""
command: []
failureThreshold: 3
httpHeaders: []
initialDelaySeconds: 20
periodSeconds: 10
port: 8080
scheme: ""
successThreshold: 1
tcp: false
timeoutSeconds: 5
ReadinessProbe:
Path: ""
command: []
failureThreshold: 3
httpHeaders: []
initialDelaySeconds: 20
periodSeconds: 10
port: 8080
scheme: ""
successThreshold: 1
tcp: false
timeoutSeconds: 5

pauseForSecondsBeforeSwitchActive: 30
waitForSecondsBeforeScalingDown: 30
Expand Down Expand Up @@ -322,4 +346,4 @@ imagePullSecrets: []
# - test1
# - test2

persistentVolumeClaim: {}
persistentVolumeClaim: {}
Loading