Explorar el Código

Add configmap retrieving configured scheme

Waqar Ahmed hace 4 años
padre
commit
b2420eebc2
Se han modificado 2 ficheros con 11 adiciones y 1 borrados
  1. 1 1
      test/minio/1.2.0/questions.yaml
  2. 10 0
      test/minio/1.2.0/templates/configmap.yaml

+ 1 - 1
test/minio/1.2.0/questions.yaml

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

+ 10 - 0
test/minio/1.2.0/templates/configmap.yaml

@@ -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 }}