Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPXC-1291 - Add automatic /tmp mount when readOnlyRootFileSystem is set #239

Merged
merged 3 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
{{- with .Values.containerSecurityContext.readOnlyRootFileSystem }}
tplavcic marked this conversation as resolved.
Show resolved Hide resolved
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 }}
{{- with .Values.containerSecurityContext.readOnlyRootFileSystem }}
tplavcic marked this conversation as resolved.
Show resolved Hide resolved
volumes:
- name: tmpdir
emptyDir: {}
{{- end }}
{{- if .Values.watchAllNamespaces }}
---
apiVersion: v1
Expand Down