Skip to content

Commit

Permalink
feat(csi-704): added PDB manifest (#118)
Browse files Browse the repository at this point in the history
* feat(csi-704): added PDB manifest

* feat(csi-704): updated common chart version

* feat(csi-704): updated pdb to template
  • Loading branch information
geka-evk authored Jan 6, 2025
1 parent 299111f commit 779f0fc
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 23 deletions.
2 changes: 1 addition & 1 deletion mojaloop/account-lookup-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
- name: account-lookup-service
version: 13.0.0
repository: "file://../chart-service"
Expand Down
2 changes: 1 addition & 1 deletion mojaloop/admin-api-svc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/bof/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies:
tags:
- mojaloop
- common
version: 3.1.2
version: ">= 3.1.2"
- name: security-role-perm-operator-svc
condition: security-role-perm-operator-svc.enabled
repository: "file://../security-role-perm-operator-svc"
Expand Down
2 changes: 1 addition & 1 deletion mojaloop/chart-admin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/chart-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
4 changes: 2 additions & 2 deletions mojaloop/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ annotations:
category: Infrastructure
apiVersion: v2
# Please make sure that version and appVersion are always the same.
appVersion: 3.1.2
version: 3.1.2
appVersion: 3.1.3
version: 3.1.3
description: A Library Helm Chart for grouping common logic between bitnami charts. This chart is not deployable by itself.
home: https://github.com/mojaloop/charts/tree/master/mojaloop/common
icon: https://bitnami.com/downloads/logos/bitnami-mark.png
Expand Down
21 changes: 21 additions & 0 deletions mojaloop/common/templates/_pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- define "common.pdb.matchLabels" -}}
ml.ha/handler: "true"
{{- end -}}

{{- define "common.pdb.resource" -}}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}-pdb
namespace: {{ .Release.Namespace | quote }}
spec:
{{- if (.Values.pdb).minAvailable }}
minAvailable: {{ .Values.pdb.minAvailable }}
{{- else if (.Values.pdb).maxUnavailable }}
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
{{- end }}
selector:
matchLabels:
{{- include "common.pdb.matchLabels" . | nindent 6 }}
unhealthyPodEvictionPolicy: AlwaysAllow
{{- end -}}
6 changes: 6 additions & 0 deletions mojaloop/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
## @skip exampleValue
##
exampleValue: common-chart

pdb:
enabled: false
# maxUnavailable: 1
# minAvailable: 20%
## Only one key should be set
2 changes: 1 addition & 1 deletion mojaloop/finance-portal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies:
tags:
- mojaloop
- common
version: 3.1.2
version: ">= 3.1.2"
- name: role-assignment-service
condition: role-assignment-service.enabled
repository: "file://../role-assignment-service"
Expand Down
2 changes: 1 addition & 1 deletion mojaloop/fspiop-transfer-api-svc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/mojaloop/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies:
tags:
- mojaloop
- common
version: 3.1.2
version: 3.1.3
- name: fspiop-transfer-api-svc
repository: "file://../fspiop-transfer-api-svc"
tags:
Expand Down
2 changes: 1 addition & 1 deletion mojaloop/reporting-events-processor-svc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/reporting-hub-bop-api-svc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/reporting-hub-bop-experience-api-svc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ maintainers:
dependencies:
- name: common
repository: "file://../common"
version: ">= 3.1.2"
tags:
- moja-common
version: 3.1.2
2 changes: 1 addition & 1 deletion mojaloop/reporting-hub-bop-positions-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/reporting-hub-bop-role-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/reporting-hub-bop-settlements-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/reporting-hub-bop-shell/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/reporting-hub-bop-trx-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/reporting-legacy-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
- name: reporting-k8s-templates
alias: reporting-k8s-templates
condition: install-templates
Expand Down
2 changes: 1 addition & 1 deletion mojaloop/reporting-nifi-processor-svc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies:
tags:
- mojaloop
- common
version: 3.1.2
version: ">= 3.1.2"
# - name: zookeeper
# version: 9.2.7
# repository: https://charts.bitnami.com/bitnami
Expand Down
2 changes: 1 addition & 1 deletion mojaloop/role-assignment-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ maintainers:
dependencies:
- name: common
repository: "file://../common"
version: ">= 3.1.2"
tags:
- moja-common
version: 3.1.2
2 changes: 1 addition & 1 deletion mojaloop/security-hub-bop-kratos-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"
2 changes: 1 addition & 1 deletion mojaloop/security-role-perm-operator-svc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dependencies:
repository: "file://../common"
tags:
- moja-common
version: 3.1.2
version: ">= 3.1.2"

0 comments on commit 779f0fc

Please sign in to comment.