Skip to content

Commit

Permalink
Merge pull request nacos-group#182 from YoogoC/master
Browse files Browse the repository at this point in the history
如果没有配置global.storageClass.provisioner,则默认已存在storage class,无需重复创建
  • Loading branch information
paderlol authored Apr 16, 2021
2 parents 868cc60 + e72a819 commit 5780587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ gen
!/.idea/
!/.idea/*
/nacos-k8s.iml

.DS_Store
6 changes: 3 additions & 3 deletions helm/templates/storageclass.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{- if and .Values.persistence.enabled .Values.persistence.storageClassName -}}
{{- if and .Values.persistence.enabled .Values.global.storageClass.provisioner .Values.persistence.storageClassName -}}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ .Values.persistence.storageClassName }}
provisioner:
provisioner:
{{ toYaml .Values.global.storageClass.provisioner | indent 2 }}
parameters:
{{ toYaml .Values.persistence.classParameters | indent 2 }}
{{ toYaml .Values.persistence.classParameters | indent 2 }}
{{- end }}

0 comments on commit 5780587

Please sign in to comment.