Skip to content

Commit

Permalink
Move allowUnsafeConfigurations to .spec, add value
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Lisin committed May 14, 2020
1 parent 5dbe045 commit b4ba0a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 b4ba0a9

Please sign in to comment.