Skip to content

Commit

Permalink
Merge pull request #394 from applejag/K8SPSMDB-1184-fix-operator-tmpdir
Browse files Browse the repository at this point in the history
K8SPSMDB-1184 fixed by adding emptyDir mount at /tmp
  • Loading branch information
jvpasinatto authored Oct 25, 2024
2 parents 640673d + 7b7a7ec commit 533a5b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/psmdb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.17.0"
description: A Helm chart for deploying the Percona Operator for MongoDB
name: psmdb-operator
home: https://docs.percona.com/percona-operator-for-mongodb/
version: 1.17.0
version: 1.17.1
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion charts/psmdb-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To install the chart with the `psmdb` release name using a dedicated namespace (

```sh
helm repo add percona https://percona.github.io/percona-helm-charts/
helm install my-operator percona/psmdb-operator --version 1.17.0 --namespace my-namespace
helm install my-operator percona/psmdb-operator --version 1.17.1 --namespace my-namespace
```

The chart can be customized using the following configurable parameters:
Expand Down
10 changes: 10 additions & 0 deletions charts/psmdb-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ spec:
name: health
command:
- percona-server-mongodb-operator
{{- if .Values.securityContext.readOnlyRootFilesystem }}
volumeMounts:
- name: tmpdir
mountPath: /tmp
{{- end }}
env:
- name: LOG_STRUCTURED
value: "{{ .Values.logStructured }}"
Expand Down Expand Up @@ -96,3 +101,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.securityContext.readOnlyRootFilesystem }}
volumes:
- name: tmpdir
emptyDir: {}
{{- end }}

0 comments on commit 533a5b6

Please sign in to comment.