Skip to content

Commit 6694dca

Browse files
committed
chore(controller): dynamic app storage class
1 parent d187d65 commit 6694dca

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

charts/controller/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
value: "{{ .Values.global.clusterDomain }}"
2121
{{- if (.Values.appStorageClass) }}
2222
- name: "DRYCC_APP_STORAGE_CLASS"
23-
value: "{{ .Values.appStorageClass }}"
23+
value: "{{ (tpl .Values.appStorageClass .) }}"
2424
{{- end }}
2525
{{- if (.Values.appRuntimeClass) }}
2626
- name: "DRYCC_APP_RUNTIME_CLASS"

charts/controller/values.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ registrationMode: "admin_only"
1717
k8sApiVerifyTls: "true"
1818

1919
# Set storageClassName. It is used for application.
20-
appStorageClass: "drycc-storage"
20+
appStorageClass: "{{ .Values.storage.csi.storageClassName }}"
2121
# Set runtimeClassName. It is used for application.
2222
appRuntimeClass: ""
2323
# Set appDNSPolicy. It is used for application.
@@ -108,6 +108,10 @@ webhook:
108108
redis:
109109
replicas: 1
110110

111+
storage:
112+
csi:
113+
storageClassName: drycc-storage
114+
111115
global:
112116
# Admin email, used for each component to send email to administrator
113117
email: "drycc@drycc.cc"

0 commit comments

Comments
 (0)