Add configmap retrieving configured scheme

This commit is contained in:
Waqar Ahmed
2021-02-08 18:55:59 +05:00
parent f34d4be81c
commit b2420eebc2
2 changed files with 11 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ groups:
portals:
web_portal:
protocols:
- "http"
- "$kubernetes-resource_configmap_minio-config_protocol"
host:
- "$node_ip"
ports:

View File

@@ -0,0 +1,10 @@
{{ $scheme := "http" }}
{{ if eq (include "minio.certAvailable" .) "true" }}
{{ $scheme = "https" }}
{{ end }}
apiVersion: v1
kind: ConfigMap
metadata:
name: minio-config
data:
protocol: {{ $scheme }}