build(kubernetes): Support hcloud (Hetzner) (#537)

feat: using `hcloud` because it's Hetzner's own preferred short name.
This commit is contained in:
Hendy Irawan 2021-12-24 13:25:55 +07:00 committed by GitHub
parent f449775cd6
commit 3b687201a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ parameters:
reclaimPolicy: Retain reclaimPolicy: Retain
#volumeBindingMode: Immediate #volumeBindingMode: Immediate
allowVolumeExpansion: true allowVolumeExpansion: true
---
{{- else if (eq (.Values.cloud | toString) "aws") }} {{- else if (eq (.Values.cloud | toString) "aws") }}
# #
# AWS resizable disk example # AWS resizable disk example
@ -25,8 +26,8 @@ parameters:
reclaimPolicy: Retain reclaimPolicy: Retain
#volumeBindingMode: Immediate #volumeBindingMode: Immediate
allowVolumeExpansion: true allowVolumeExpansion: true
{{- end }}
--- ---
{{- end }}
apiVersion: "clickhouse.altinity.com/v1" apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation" kind: "ClickHouseInstallation"
metadata: metadata:
@ -96,6 +97,8 @@ spec:
storageClassName: gce-resizable storageClassName: gce-resizable
{{- else if (eq (.Values.cloud | toString) "aws") }} {{- else if (eq (.Values.cloud | toString) "aws") }}
storageClassName: gp2-resizable storageClassName: gp2-resizable
{{- else if (eq (.Values.cloud | toString) "hcloud") }}
storageClassName: hcloud-volumes
{{- end }} {{- end }}
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce