mirror of
https://github.com/truenas/charts.git
synced 2026-02-03 10:34:06 +08:00
Add configmap retrieving configured scheme
This commit is contained in:
@@ -11,7 +11,7 @@ groups:
|
||||
portals:
|
||||
web_portal:
|
||||
protocols:
|
||||
- "http"
|
||||
- "$kubernetes-resource_configmap_minio-config_protocol"
|
||||
host:
|
||||
- "$node_ip"
|
||||
ports:
|
||||
|
||||
10
test/minio/1.2.0/templates/configmap.yaml
Normal file
10
test/minio/1.2.0/templates/configmap.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user