Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/gitlab-ce] Use storageClassName for gitlab-ce.
Browse files Browse the repository at this point in the history
  • Loading branch information
gyliu513 committed Oct 19, 2017
1 parent 8b63a56 commit af1abb5
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 19 deletions.
2 changes: 1 addition & 1 deletion stable/gitlab-ce/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gitlab-ce
deprecated: true
version: 0.2.1
version: 0.2.2
description: GitLab Community Edition
keywords:
- git
Expand Down
13 changes: 7 additions & 6 deletions stable/gitlab-ce/templates/data-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "gitlab-ce.fullname" . }}-data
annotations:
{{- if .Values.persistence.gitlabData.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.gitlabData.storageClass | quote }}
{{- else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.gitlabData.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.gitlabData.size | quote }}
{{- if .Values.persistence.gitlabData.storageClass }}
{{- if (eq "-" .Values.persistence.gitlabData.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.gitlabData.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
13 changes: 7 additions & 6 deletions stable/gitlab-ce/templates/etc-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "gitlab-ce.fullname" . }}-etc
annotations:
{{- if .Values.persistence.gitlabEtc.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.gitlabEtc.storageClass | quote }}
{{- else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.gitlabEtc.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.gitlabEtc.size | quote }}
{{- if .Values.persistence.gitlabEtc.storageClass }}
{{- if (eq "-" .Values.persistence.gitlabEtc.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.gitlabEtc.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
20 changes: 14 additions & 6 deletions stable/gitlab-ce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,29 @@ persistence:
gitlabEtc:
enabled: true
size: 1Gi
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
## gitlabEtc 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
## 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
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
## gitlabData 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

## Configuration values for the postgresql dependency.
Expand Down

0 comments on commit af1abb5

Please sign in to comment.