Skip to content

Commit

Permalink
Merge pull request #248 from sergelogvinov/container-sec
Browse files Browse the repository at this point in the history
CLOUD-838 - Fix backup pod-containerSecurityContext
  • Loading branch information
tplavcic authored Jan 31, 2024
2 parents 9d9d3d1 + 741213b commit 2f94d3a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/psmdb-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.15.0"
description: A Helm chart for installing Percona Server MongoDB Cluster Databases using the PSMDB Operator.
name: psmdb-db
home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html
version: 1.15.1
version: 1.15.2
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
2 changes: 2 additions & 0 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ The chart can be customized using the following configurable parameters:
| |
| `backup.enabled` | Enable backup PBM agent | `true` |
| `backup.annotations` | Backup job annotations | `{}` |
| `backup.podSecurityContext` | Set the security context for a Pod | `{}` |
| `backup.containerSecurityContext` | Set the security context for a Container | `{}` |
| `backup.restartOnFailure` | Backup Pods restart policy | `true` |
| `backup.image.repository` | PBM Container image repository | `percona/percona-backup-mongodb` |
| `backup.image.tag` | PBM Container image tag | `2.3.0` |
Expand Down
8 changes: 8 additions & 0 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,14 @@ spec:
{{- if .Values.backup.annotations }}
annotations:
{{ .Values.backup.annotations | toYaml | indent 6 }}
{{- end }}
{{- if .Values.backup.podSecurityContext }}
podSecurityContext:
{{ .Values.backup.podSecurityContext | toYaml | indent 6 }}
{{- end }}
{{- if .Values.backup.containerSecurityContext }}
containerSecurityContext:
{{ .Values.backup.containerSecurityContext | toYaml | indent 6 }}
{{- end }}
image: "{{ .Values.backup.image.repository }}:{{ .Values.backup.image.tag }}"
serviceAccountName: {{ .Values.backup.serviceAccountName }}
Expand Down
14 changes: 11 additions & 3 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ replsets:
# priorityClass: ""
# annotations: {}
# labels: {}
# podSecurityContext: {}
# containerSecurityContext: {}
# nodeSelector: {}
# livenessProbe:
# failureThreshold: 4
Expand Down Expand Up @@ -180,7 +182,7 @@ replsets:
# - 10.0.0.0/8
# serviceAnnotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
# serviceLabels:
# serviceLabels:
# some-label: some-key
# schedulerName: ""
resources:
Expand Down Expand Up @@ -326,6 +328,8 @@ sharding:
# priorityClass: ""
# annotations: {}
# labels: {}
# podSecurityContext: {}
# containerSecurityContext: {}
# nodeSelector: {}
# livenessProbe: {}
# readinessProbe: {}
Expand All @@ -349,7 +353,7 @@ sharding:
# - 10.0.0.0/8
# serviceAnnotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
# serviceLabels:
# serviceLabels:
# some-label: some-key
resources:
limits:
Expand Down Expand Up @@ -409,6 +413,8 @@ sharding:
# priorityClass: ""
# annotations: {}
# labels: {}
# podSecurityContext: {}
# containerSecurityContext: {}
# nodeSelector: {}
# livenessProbe: {}
# readinessProbe: {}
Expand Down Expand Up @@ -439,7 +445,7 @@ sharding:
# - 10.0.0.0/8
# serviceAnnotations:
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
# serviceLabels:
# serviceLabels:
# some-label: some-key
# auditLog:
# destination: file
Expand All @@ -459,6 +465,8 @@ backup:
serviceAccountName: percona-server-mongodb-operator
# annotations:
# iam.amazonaws.com/role: role-arn
# podSecurityContext: {}
# containerSecurityContext: {}
# resources:
# limits:
# cpu: "300m"
Expand Down

0 comments on commit 2f94d3a

Please sign in to comment.