Skip to content

Commit

Permalink
Merge pull request #225 from MarcThe/add-optional-securityContext
Browse files Browse the repository at this point in the history
K8SPXC-1279 - add optional securityContext
  • Loading branch information
tplavcic authored Aug 4, 2023
2 parents 87d260e + 3a2f3e2 commit 9389c80
Show file tree
Hide file tree
Showing 4 changed files with 8 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.0
version: 1.13.1
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
1 change: 1 addition & 0 deletions charts/pxc-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The chart can be customized using the following configurable parameters:
| ------------------------------- | -----------------------------------------------------------------------------------------------| -------------------------------------------------|
| `image` | PXC Operator Container image full path | `percona/percona-xtradb-cluster-operator:1.13.0` |
| `imagePullPolicy` | PXC Operator Container pull policy | `Always` |
| `containerSecurityContext` | PXC Operator Container securityContext | `{}` |
| `imagePullSecrets` | PXC Operator Pod pull secret | `[]` |
| `replicaCount` | PXC Operator Pod quantity | `1` |
| `tolerations` | List of node taints to tolerate | `[]` |
Expand Down
4 changes: 4 additions & 0 deletions charts/pxc-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
scheme: HTTP
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pxc-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ resources:
cpu: 100m
memory: 20Mi

containerSecurityContext: {}

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 9389c80

Please sign in to comment.