Skip to content

Commit

Permalink
Turn "selector" for PVs/PVCs off by Default
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtigyro committed Oct 30, 2019
1 parent fda4de8 commit 7e9476a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/hiera-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.hiera.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
2 changes: 2 additions & 0 deletions templates/postgres-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.postgres.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
2 changes: 2 additions & 0 deletions templates/puppetdb-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetdb.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
2 changes: 2 additions & 0 deletions templates/puppetserver-code-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetserver.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
2 changes: 2 additions & 0 deletions templates/puppetserver-data-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetserver.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
2 changes: 2 additions & 0 deletions templates/puppetserver-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetserver.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,6 @@ storage:
## GKE, AWS & OpenStack)
##
storageClass: ""
selector: false
annotations: {}
size: 100Mi

0 comments on commit 7e9476a

Please sign in to comment.