Skip to content

Commit

Permalink
Update all stable PVC defs to use recommended pattern.
Browse files Browse the repository at this point in the history
This changes all the various pvc.yaml files to use tha pattern shown in helm#235
This also includes a simple sed -i replacement to comment out the storageClass values in the various values.yaml
  • Loading branch information
AmandaCameron committed Jan 16, 2017
1 parent 56c1a4a commit fc1eb65
Show file tree
Hide file tree
Showing 68 changed files with 370 additions and 96 deletions.
9 changes: 8 additions & 1 deletion stable/chronograf/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
Expand Down
2 changes: 1 addition & 1 deletion stable/chronograf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ service:
## Persist data to a persitent volume
persistence:
enabled: false
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
9 changes: 8 additions & 1 deletion stable/dokuwiki/templates/apache-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.apache.storageClass | quote }}
{{- if .Values.persistence.apache.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.apache.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.apache.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.apache.accessMode | quote }}
Expand Down
9 changes: 8 additions & 1 deletion stable/dokuwiki/templates/dokuwiki-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.dokuwiki.storageClass | quote }}
{{- if .Values.persistence.dokuwiki.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.dokuwiki.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.dokuwiki.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.dokuwiki.accessMode | quote }}
Expand Down
4 changes: 2 additions & 2 deletions stable/dokuwiki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ serviceType: LoadBalancer
persistence:
enabled: true
apache:
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 1Gi
dokuwiki:
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
6 changes: 3 additions & 3 deletions stable/drupal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mariadb:
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
# storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand All @@ -59,14 +59,14 @@ persistence:
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
# storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 1Gi
drupal:
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
# storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
9 changes: 8 additions & 1 deletion stable/factorio/templates/mods-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- ReadWriteOnce
Expand Down
9 changes: 8 additions & 1 deletion stable/factorio/templates/saves-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- ReadWriteOnce
Expand Down
2 changes: 1 addition & 1 deletion stable/factorio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ factorio:
password: your.password

persistence:
storageClass: generic
storageClass: ""
savedGames:
# Set this to false if you don't care to persist saved games between restarts.
enabled: true
Expand Down
9 changes: 8 additions & 1 deletion stable/ghost/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
Expand Down
4 changes: 2 additions & 2 deletions stable/ghost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mariadb:
##
persistence:
enabled: true
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand All @@ -82,7 +82,7 @@ serviceType: LoadBalancer
##
persistence:
enabled: true
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
9 changes: 8 additions & 1 deletion stable/gitlab-ce/templates/data-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ apiVersion: v1
metadata:
name: {{ template "fullname" . }}-data
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.gitlabData.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.gitlabData.accessMode | quote }}
Expand Down
9 changes: 8 additions & 1 deletion stable/gitlab-ce/templates/etc-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ apiVersion: v1
metadata:
name: {{ template "fullname" . }}-etc
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.gitlabEtc.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.gitlabEtc.accessMode | quote }}
Expand Down
4 changes: 2 additions & 2 deletions stable/gitlab-ce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ persistence:
gitlabEtc:
enabled: true
size: 1Gi
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
## This volume is used to store git data and other project files.
## ref: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory
##
gitlabData:
enabled: true
size: 10Gi
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce

## Configuration values for the postgresql dependency.
Expand Down
9 changes: 8 additions & 1 deletion stable/influxdb/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
Expand Down
2 changes: 1 addition & 1 deletion stable/influxdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ service:
## Persist data to a persitent volume
persistence:
enabled: false
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
9 changes: 8 additions & 1 deletion stable/jasperreports/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
Expand Down
4 changes: 2 additions & 2 deletions stable/jasperreports/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mariadb:
##
persistence:
enabled: true
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand All @@ -63,7 +63,7 @@ serviceType: LoadBalancer
##
persistence:
enabled: true
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
9 changes: 8 additions & 1 deletion stable/jenkins/templates/home-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.Persistence.StorageClass | quote }}
{{- if .Values.Persistence.StorageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.Persistence.StorageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.Persistence.Annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.Persistence.AccessMode | quote }}
Expand Down
9 changes: 8 additions & 1 deletion stable/joomla/templates/apache-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.apache.storageClass | quote }}
{{- if .Values.persistence.apache.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.apache.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.apache.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.apache.accessMode | quote }}
Expand Down
9 changes: 8 additions & 1 deletion stable/joomla/templates/joomla-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.joomla.storageClass | quote }}
{{- if .Values.persistence.joomla.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.joomla.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.joomla.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.joomla.accessMode | quote }}
Expand Down
6 changes: 3 additions & 3 deletions stable/joomla/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mariadb:
##
persistence:
enabled: true
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand All @@ -64,11 +64,11 @@ serviceType: LoadBalancer
persistence:
enabled: true
apache:
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 1Gi
joomla:
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
9 changes: 8 additions & 1 deletion stable/kapacitor/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
app: {{ template "fullname" . }}
name: {{ template "fullname" . }}
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
Expand Down
2 changes: 1 addition & 1 deletion stable/kapacitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ service:
##
persistence:
enabled: false
storageClass: generic
storageClass: ""
accessMode: ReadWriteOnce
size: 8Gi

Expand Down
9 changes: 8 additions & 1 deletion stable/magento/templates/apache-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
volume.alpha.kubernetes.io/storage-class: {{ .Values.persistence.apache.storageClass | quote }}
{{- if .Values.persistence.apache.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.apache.storageClass }}
{{ else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
{{- range $key, $value := .Values.persistence.apache.annotations }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.apache.accessMode | quote }}
Expand Down
Loading

0 comments on commit fc1eb65

Please sign in to comment.