_portal.tpl 622 B

1234567891011121314151617181920
  1. {{- define "minio.portal" -}}
  2. ---
  3. apiVersion: v1
  4. kind: ConfigMap
  5. metadata:
  6. name: portal
  7. data:
  8. {{- $url := urlParse .Values.minioNetwork.consoleUrl -}}
  9. {{- $protocol := $url.scheme -}}
  10. {{- $host := $url.hostname -}}
  11. {{- $port := $url.host | replace $host "" | replace ":" "" -}}
  12. {{/* If user used SCALE certificate, then force https */}}
  13. {{- if eq "https" (include "minio.scheme" $) -}}
  14. {{- $protocol = "https" -}}
  15. {{- end }}
  16. path: "/"
  17. port: {{ $port | default .Values.minioNetwork.webPort | quote }}
  18. protocol: {{ $protocol | default "http" }}
  19. host: {{ $host | default "$node_ip" }}
  20. {{- end -}}