Skip to content

Commit

Permalink
Merge pull request #239 from MarcThe/add-automatic-tmp-mount-on-reado…
Browse files Browse the repository at this point in the history
…nlyrootfilesystem

K8SPXC-1291 - Add automatic /tmp mount when readOnlyRootFileSystem is set
  • Loading branch information
tplavcic authored Sep 8, 2023
2 parents b2eb55e + 310cd00 commit 1bb2a1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/pxc-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.13.0
description: A Helm chart for deploying the Percona Operator for MySQL (based on Percona XtraDB Cluster)
name: pxc-operator
home: https://docs.percona.com/percona-operator-for-mysql/pxc/
version: 1.13.1
version: 1.13.2
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
10 changes: 10 additions & 0 deletions charts/pxc-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ spec:
protocol: TCP
command:
- percona-xtradb-cluster-operator
{{- if .Values.containerSecurityContext.readOnlyRootFilesystem }}
volumeMounts:
- name: tmpdir
mountPath: /tmp
{{- end }}
env:
- name: WATCH_NAMESPACE
{{- if .Values.watchAllNamespaces }}
Expand Down Expand Up @@ -83,6 +88,11 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.containerSecurityContext.readOnlyRootFilesystem }}
volumes:
- name: tmpdir
emptyDir: {}
{{- end }}
{{- if .Values.watchAllNamespaces }}
---
apiVersion: v1
Expand Down

0 comments on commit 1bb2a1a

Please sign in to comment.