Skip to content

Commit

Permalink
feat(csi-704): add PDB for handlers (#674)
Browse files Browse the repository at this point in the history
feat(csi-704): updated PDB to als-admin
  • Loading branch information
geka-evk authored Jan 8, 2025
1 parent 4b8e74b commit 95ed8b6
Show file tree
Hide file tree
Showing 31 changed files with 65 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bulk-api-adapter/chart-handler-notification/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions bulk-api-adapter/chart-handler-notification/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
2 changes: 1 addition & 1 deletion centralledger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ dependencies:
condition: centralledger-handler-transfer-get.enabled
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: ">= 3.1.3"
tags:
- moja-common
2 changes: 1 addition & 1 deletion centralledger/chart-handler-admin-transfer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.1
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions centralledger/chart-handler-admin-transfer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
2 changes: 1 addition & 1 deletion centralledger/chart-handler-transfer-fulfil/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions centralledger/chart-handler-transfer-fulfil/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
2 changes: 1 addition & 1 deletion centralledger/chart-handler-transfer-get/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions centralledger/chart-handler-transfer-get/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,3 +412,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
2 changes: 1 addition & 1 deletion centralledger/chart-handler-transfer-position/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions centralledger/chart-handler-transfer-position/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
2 changes: 1 addition & 1 deletion centralledger/chart-handler-transfer-prepare/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions centralledger/chart-handler-transfer-prepare/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -410,3 +410,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
2 changes: 1 addition & 1 deletion ml-api-adapter/chart-handler-notification/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.1
version: 3.1.3
tags:
- moja-common
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions ml-api-adapter/chart-handler-notification/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,3 +368,5 @@ ingress:
# cpu: 100m
# memory: 128Mi
resources: {}

usePdb: false
2 changes: 1 addition & 1 deletion mojaloop/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ dependencies:
condition: mojaloop-ttk-simulators.enabled
- name: common
repository: https://mojaloop.github.io/charts/repo
version: ">= 3.0.0"
version: ">= 3.1.3"
tags:
- moja-common
- name: ml-testing-toolkit
Expand Down
3 changes: 3 additions & 0 deletions mojaloop/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- if .Values.pdb.enabled }}
{{- include "common.pdb.resource" . }}
{{- end -}}
6 changes: 6 additions & 0 deletions mojaloop/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ CONFIG:
# Declare global configurations
global: {}

pdb:
enabled: true
maxUnavailable: 1
# minAvailable: 20%
## Only one key should be set

# Declare variables to be passed into your templates.

account-lookup-service:
Expand Down
2 changes: 1 addition & 1 deletion quoting-service/chart-handler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ maintainers:
dependencies:
- name: common
repository: "https://mojaloop.github.io/charts/repo"
version: 3.1.2
version: 3.1.3
tags:
- moja-common
3 changes: 3 additions & 0 deletions quoting-service/chart-handler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.podLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.usePdb }}
{{- include "common.pdb.matchLabels" . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.configOverride }}
Expand Down
2 changes: 2 additions & 0 deletions quoting-service/chart-handler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,5 @@ resources: {}
# requests:
# cpu: 100m
# memory: 128Mi

usePdb: false

0 comments on commit 95ed8b6

Please sign in to comment.