Skip to content

Commit

Permalink
Merge pull request #20 from ml-/allow-unsafe-config
Browse files Browse the repository at this point in the history
Move allowUnsafeConfigurations to .spec, add value
  • Loading branch information
tplavcic authored Jun 25, 2020
2 parents 5dbe045 + f35c09e commit 552956e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/pxc-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.4.0"
description: A Helm chart for installing Percona XtraDB Cluster Databases using the PXC Operator.
name: pxc-db
home: https://www.percona.com/doc/kubernetes-operator-for-pxc/kubernetes.html
version: 0.1.8
version: 0.1.9
maintainers:
- name: paulczar
email: [email protected]
1 change: 1 addition & 0 deletions charts/pxc-db/production-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ nameOverride: "production"
fullnameOverride: "production"

pause: false
allowUnsafeConfigurations: false

pxc:
size: 3
Expand Down
6 changes: 3 additions & 3 deletions charts/pxc-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ spec:
sslInternalSecretName: {{ include "pxc-database.fullname" . }}-ssl-internal
{{- end }}
{{- end }}
{{- if or .Values.allowUnsafeConfigurations .Values.pxc.disableTLS }}
allowUnsafeConfigurations: true
{{- end }}
pause: {{ .Values.pause }}
{{- $pxc := .Values.pxc }}
pxc:
size: {{ $pxc.size }}
{{- if .Values.pxc.disableTLS }}
allowUnsafeConfigurations: false
{{- end }}
image: "{{ $pxc.image.repository }}:{{ $pxc.image.tag }}"
readinessDelaySec: {{ $pxc.readinessDelaySec }}
livenessDelaySec: {{ $pxc.livenessDelaySec }}
Expand Down
1 change: 1 addition & 0 deletions charts/pxc-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ nameOverride: ""
fullnameOverride: ""

pause: false
allowUnsafeConfigurations: false

pxc:
size: 3
Expand Down

0 comments on commit 552956e

Please sign in to comment.