mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/jenkins] Use storageClassName for jenkins. (#1997)
This commit is contained in:
committed by
Adnan Abdulhussein
parent
1f0c07c4f9
commit
802f6449ba
@@ -1,6 +1,6 @@
|
||||
name: jenkins
|
||||
home: https://jenkins.io/
|
||||
version: 0.8.8
|
||||
version: 0.8.9
|
||||
appVersion: 2.67
|
||||
description: Open source continuous integration server. It supports multiple SCM tools including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based projects as well as arbitrary scripts.
|
||||
sources:
|
||||
|
||||
@@ -8,16 +8,17 @@ metadata:
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
annotations:
|
||||
{{- 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 }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.Persistence.Size | quote }}
|
||||
{{- if .Values.Persistence.StorageClass }}
|
||||
{{- if (eq "-" .Values.Persistence.StorageClass) }}
|
||||
storageClassName: ""
|
||||
{{- else }}
|
||||
storageClassName: "{{ .Values.Persistence.StorageClass }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -102,10 +102,15 @@ Persistence:
|
||||
## If defined, PVC must be created manually before volume will be bound
|
||||
# ExistingClaim:
|
||||
|
||||
## If defined, volume.beta.kubernetes.io/storage-class: <StorageClass>
|
||||
## Default: volume.alpha.kubernetes.io/storage-class: default
|
||||
## jenkins data Persistent Volume Storage Class
|
||||
## If defined, storageClassName: <storageClass>
|
||||
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
||||
## If undefined (the default) or set to null, no storageClassName spec is
|
||||
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
||||
## GKE, AWS & OpenStack)
|
||||
##
|
||||
# StorageClass:
|
||||
# StorageClass: "-"
|
||||
|
||||
AccessMode: ReadWriteOnce
|
||||
Size: 8Gi
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user