Skip to content

Commit

Permalink
MOSIP-28488 (#496)
Browse files Browse the repository at this point in the history
* [MOSIP-28488] Updated backoffLimit in job.yaml

Signed-off-by: Mohan E <[email protected]>

* [MOSIP-28488] Updated backoffLimit in values.yaml

Signed-off-by: Mohan E <[email protected]>

* Update values.yaml

Signed-off-by: Mohan E <[email protected]>

* [MOSIP-28488] Updated backoffLimit.

* [MOSIP-28488] Updated backoffLimit.

* [MOSIP-28488] Updated cronjob.yaml

* [MOSIP-28488] Updated jobs.yaml

Signed-off-by: Mohan E <[email protected]>

---------

Signed-off-by: Mohan E <[email protected]>
  • Loading branch information
Mohanraj209 authored Jul 21, 2023
1 parent 138bc91 commit c0d3801
Show file tree
Hide file tree
Showing 41 changed files with 76 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/apitestrig/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
schedule: {{ $.Values.crontime }}
jobTemplate:
spec:
backoffLimit: 2 # this has very low chance of failing, as all this does
backoffLimit: {{ $.Values.backoffLimit }} # this has very low chance of failing, as all this does
# is prompt kubernetes to schedule new replica set for
# the deployment
# activeDeadlineSeconds: 600 # timeout, makes most sense with
Expand Down
4 changes: 4 additions & 0 deletions charts/apitestrig/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ customLivenessProbe: {}
##
customReadinessProbe: {}

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

## Update strategy - only really applicable for deployments with RWO PVs attached
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
Expand Down
2 changes: 1 addition & 1 deletion charts/dslorchestrator/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
schedule: {{ .Values.crontime }}
jobTemplate:
spec:
backoffLimit: 2 # this has very low chance of failing, as all this does
backoffLimit: {{ $.Values.backoffLimit }} # this has very low chance of failing, as all this does
# is prompt kubernetes to schedule new replica set for
# the deployment
# activeDeadlineSeconds: 600 # timeout, makes most sense with
Expand Down
4 changes: 4 additions & 0 deletions charts/dslorchestrator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ customLivenessProbe: {}
##
customReadinessProbe: {}

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

## Update strategy - only really applicable for deployments with RWO PVs attached
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
Expand Down
1 change: 1 addition & 0 deletions charts/idrepo-saltgen/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
{{- end }}

spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/idrepo-saltgen/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ customLivenessProbe: {}
##
customReadinessProbe: {}

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

## Update strategy - only really applicable for deployments with RWO PVs attached
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
Expand Down
1 change: 1 addition & 0 deletions charts/keycloak-init/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{- include "keycloak-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
4 changes: 4 additions & 0 deletions charts/keycloak-init/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ resources: {}
# cpu: 100m
# memory: 128Mi

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

nodeSelector: {}

tolerations: []
Expand Down
1 change: 1 addition & 0 deletions charts/keygen/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
{{- end }}

spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/keygen/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ customLivenessProbe: {}
##
customReadinessProbe: {}

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

## Update strategy - only really applicable for deployments with RWO PVs attached
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
Expand Down
1 change: 1 addition & 0 deletions charts/masterdata-loader/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{- include "masterdata-loader.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
4 changes: 4 additions & 0 deletions charts/masterdata-loader/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ resources: {}
# cpu: 100m
# memory: 128Mi

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

nodeSelector: {}

tolerations: []
Expand Down
3 changes: 2 additions & 1 deletion charts/partner-onboarder/templates/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
backoffLimit: {{ $.Values.backoffLimit }}
template:
metadata:
labels: {{- include "common.labels.standard" $ | nindent 10 }}
Expand Down Expand Up @@ -63,4 +64,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/partner-onboarder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ customLivenessProbe: {}
##
customReadinessProbe: {}

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

## Update strategy - only really applicable for deployments with RWO PVs attached
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/audit-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/authdevice-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/credential-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/digitalcard-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/esignet-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/hotlist-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/ida-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/idmap-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/idrepo-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/kernel-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/keymgr-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/master-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/mockidentitysystem-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/pms-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/prereg-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/regdevice-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/regprc-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/postgres-init/templates/resident-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "postgres-init.labels" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
2 changes: 2 additions & 0 deletions charts/postgres-init/templates/toolkit-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ metadata:

spec:

backoffLimit: {{ .Values.backoffLimit }}

template:

metadata:
Expand Down
4 changes: 4 additions & 0 deletions charts/postgres-init/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ resources: {}
# cpu: 100m
# memory: 128Mi

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

nodeSelector: {}

tolerations: []
Expand Down
1 change: 1 addition & 0 deletions charts/regproc-salt/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
{{- end }}

spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/regproc-salt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ customLivenessProbe: {}
##
customReadinessProbe: {}

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

## Update strategy - only really applicable for deployments with RWO PVs attached
## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
Expand Down
1 change: 1 addition & 0 deletions charts/reporting-init/templates/debezium-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
app.kubernetes.io/name: {{ .Release.Name }}-debezium-job
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/reporting-init/templates/es-kafka-connect-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
app.kubernetes.io/name: {{ .Release.Name }}-es-kafka-conn-job
spec:
backoffLimit: {{ .Values.backoffLimit }}
template:
metadata:
labels:
Expand Down
4 changes: 4 additions & 0 deletions charts/reporting-init/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ es_kafka_connectors:
delay_between_connectors: "0s"

kibana_enabled: {}

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0
2 changes: 1 addition & 1 deletion charts/restart-cron/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
schedule: {{ .Values.schedule.crontime }}
jobTemplate:
spec:
backoffLimit: 2
backoffLimit: {{ .Values.backoffLimit }}
activeDeadlineSeconds: 600
template:
spec:
Expand Down
4 changes: 4 additions & 0 deletions charts/restart-cron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ namespaces:
schedule:
crontime: "0 3 * * *" ## run cronjob every day at 3 AM (time hr: 0-23 )

## "backoff" strategy - It is used when dealing with resources that are retrying or recovering from failures.
##
backoffLimit: 0

serviceAccount:
create: true
name: pod-deleter
Expand Down

0 comments on commit c0d3801

Please sign in to comment.