We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9acfd71 commit 17620caCopy full SHA for 17620ca
graylog/templates/config/sc/aws-gp3.yaml
@@ -1,10 +1,13 @@
1
-{{- if and (eq .Values.provider "aws") (empty .Values.global.defaultStorageClass) }}
+{{- $isAWS := .Values.provider | default "" | hasPrefix "aws" }}
2
+{{- if empty .Values.global.defaultStorageClass | and $isAWS }}
3
apiVersion: storage.k8s.io/v1
4
kind: StorageClass
5
metadata:
- name: gp3
6
+ name: {{ include "graylog.fullname" . | print "%s-gp3" }}
7
annotations:
8
+ {{- if hasSuffix "-managed-sc" | and $isAWS }}
9
storageclass.kubernetes.io/is-default-class: "true"
10
+ {{- end }}
11
provisioner: ebs.csi.aws.com
12
parameters:
13
type: gp3
0 commit comments