We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
type
1 parent a51e261 commit ad7fa4aCopy full SHA for ad7fa4a
charts/sourcegraph/templates/storageclass.yaml
@@ -12,7 +12,9 @@ metadata:
12
{{- end }}
13
provisioner: {{ .Values.storageClass.provisioner }}
14
parameters:
15
- type: {{ .Values.storageClass.type }}
+ {{- with .Values.storageClass.type }}
16
+ type: {{ . }}
17
+ {{- end }}
18
{{- if .Values.storageClass.parameters}}
19
{{- toYaml .Values.storageClass.parameters | nindent 2 }}
20
charts/sourcegraph/tests/storageClass_test.yaml
@@ -12,3 +12,11 @@ tests:
- equal:
path: parameters.zones
value: us-central1-f
+- it: should not have 'type' when storageClass.type=null
+ set:
+ storageClass:
+ create: true
+ type: null
+ asserts:
21
+ - isNull:
22
+ path: parameters
0 commit comments