Skip to content

Commit

Permalink
Make storage class name helm variable (#1275)
Browse files Browse the repository at this point in the history
* make storage class name helm variable
  • Loading branch information
akihikokuroda authored Apr 11, 2024
1 parent 56e5557 commit bcd01d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions charts/quantum-serverless/templates/pvcs.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{{ if and (eq .Values.platform "kind") (eq .Values.cosEnable false) }}
{{ if eq .Values.platform "kind" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.cos.claimName }}
name: {{ .Values.claimName }}
spec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
{{ else if and (eq .Values.platform "ibm") .Values.cosEnable }}
{{ else if eq .Values.platform "ibm" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.cos.claimName }}
name: {{ .Values.claimName }}
annotations:
ibm.io/auto-create-bucket: "false"
ibm.io/auto-delete-bucket: "false"
Expand All @@ -29,7 +29,7 @@ spec:
resources:
requests:
storage: {{ .Values.cos.storageSize | quote }}
storageClassName: {{ .Values.cos.storageClassName | quote }}
storageClassName: {{ .Values.storageClassName | quote }}
{{ else }}
apiVersion: v1
kind: PersistentVolume
Expand All @@ -51,9 +51,9 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.cos.claimName }}
name: {{ .Values.claimName }}
spec:
storageClassName: manual
storageClassName: {{ .Values.storageClassName | quote }}
accessModes:
- ReadWriteMany
resources:
Expand Down
8 changes: 4 additions & 4 deletions charts/quantum-serverless/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ postgresql:
password: serverlesspassword

# ===================
# COS
# PVC
# ===================

cosEnable: false
storageClassName: manual
claimName: gateway-claim

cos:
bucket: BUCKETNAME-CHANGEME
claimName: gateway-claim
endpoint: ENDPOINT-CHANGEME
secretName: SECRETNAME-CHANGEME
storageClassName: STORAGECLASSNAME-CHANGEME
storageSize: 10Gi

0 comments on commit bcd01d0

Please sign in to comment.