[stable/jenkins] Update to the recommended pvc patterns. (#448)

* Convert chart jenkins to use the recommended pvc patterns

* Update home-pvc.yaml

* Update Chart.yaml

* Update _helpers.tpl

* fix notes for 1.5
This commit is contained in:
Amanda Cameron
2017-01-27 17:37:15 -08:00
committed by Adnan Abdulhussein
parent feb23a713f
commit a7fc595aa7
3 changed files with 10 additions and 7 deletions
+1 -2
View File
@@ -1,5 +1,5 @@
1. Get your '{{ .Values.Master.AdminUser }}' user password by running:
printf $(printf '\%o' `kubectl get secret --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath="{.data.jenkins-admin-password[*]}"`);echo
printf $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
2. Get the Jenkins URL to visit by running these commands in the same shell:
{{- if contains "NodePort" .Values.Master.ServiceType }}
@@ -32,4 +32,3 @@ https://cloud.google.com/solutions/jenkins-on-container-engine
###### the Jenkins pod is terminated. #####
#################################################################################
{{- end }}
+4 -4
View File
@@ -3,14 +3,14 @@
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 24 -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 24 -}}
{{- end -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
+5 -1
View File
@@ -9,7 +9,11 @@ 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 }}
spec:
accessModes:
- {{ .Values.Persistence.AccessMode | quote }}