Skip to content

Commit 19484bd

Browse files
committed
feat: add support for aws-managed-sc
1 parent 9acfd71 commit 19484bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

graylog/templates/config/sc/aws-gp3.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
{{- if and (eq .Values.provider "aws") (empty .Values.global.defaultStorageClass) }}
1+
{{- $isAWS := hasPrefix "aws" .Values.provider }}
2+
{{- if empty .Values.global.defaultStorageClass | and $isAWS }}
23
apiVersion: storage.k8s.io/v1
34
kind: StorageClass
45
metadata:
5-
name: gp3
6+
name: {{ include "graylog.fullname" . | print "%s-gp3" }}
67
annotations:
8+
{{- if hasSuffix "-managed-sc" | and $isAWS }}
79
storageclass.kubernetes.io/is-default-class: "true"
10+
{{- end }}
811
provisioner: ebs.csi.aws.com
912
parameters:
1013
type: gp3

0 commit comments

Comments
 (0)