Small common touchup
This commit is contained in:
@@ -19,4 +19,4 @@ name: common
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/apps/tree/master/library/common
|
- https://github.com/truecharts/apps/tree/master/library/common
|
||||||
type: library
|
type: library
|
||||||
version: 4.1.0
|
version: 4.1.1
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Main entrypoint for the common library chart. It will render all underlying temp
|
|||||||
{{- if .Values.secret -}}
|
{{- if .Values.secret -}}
|
||||||
{{ include "common.secret" . | nindent 0 }}
|
{{ include "common.secret" . | nindent 0 }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ include "common.classes.portal" . | nindent 0 }}
|
{{ include "common.class.portal" . | nindent 0 }}
|
||||||
|
|
||||||
{{ include "common.class.mountPermissions" . | nindent 0 }}
|
{{ include "common.class.mountPermissions" . | nindent 0 }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{{- define "common.classes.portal" -}}
|
{{- define "common.class.portal" -}}
|
||||||
|
|
||||||
{{- if .Values.portal }}
|
{{- if .Values.portal }}
|
||||||
{{- if .Values.portal.enabled }}
|
{{- if .Values.portal.enabled }}
|
||||||
{{- $svc := index .Values.services (keys .Values.services | first) -}}
|
{{- $primaryService := get .Values.service (include "common.service.primary" .) }}
|
||||||
|
{{- $primaryPort := get $primaryService.ports (include "common.classes.service.ports.primary" (dict "values" $primaryService)) -}}
|
||||||
{{- $ingr := index .Values.ingress (keys .Values.ingress | first) -}}
|
{{- $ingr := index .Values.ingress (keys .Values.ingress | first) -}}
|
||||||
{{- $host := "$node_ip" }}
|
{{- $host := "$node_ip" }}
|
||||||
{{- $port := 443 }}
|
{{- $port := 443 }}
|
||||||
@@ -30,10 +31,10 @@
|
|||||||
{{- if and ( .Values.portal.ingressPort ) ( ne $host "$node_ip" ) }}
|
{{- if and ( .Values.portal.ingressPort ) ( ne $host "$node_ip" ) }}
|
||||||
{{- $port = .Values.portal.ingressPort }}
|
{{- $port = .Values.portal.ingressPort }}
|
||||||
{{- else if eq $host "$node_ip" }}
|
{{- else if eq $host "$node_ip" }}
|
||||||
{{- if eq $svc.type "NodePort" }}
|
{{- if eq $primaryService.type "NodePort" }}
|
||||||
{{- $port = $svc.port.nodePort }}
|
{{- $port = $primaryPort.nodePort }}
|
||||||
{{- if or ( eq $svc.port.protocol "HTTP" ) ( eq $svc.port.protocol "HTTPS" ) }}
|
{{- if or ( eq $primaryPort.protocol "HTTP" ) ( eq $primaryPort.protocol "HTTPS" ) }}
|
||||||
{{- $portProtocol = $svc.port.protocol }}
|
{{- $portProtocol = $primaryPort.protocol }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
{{- $path = .Values.portal.path }}
|
{{- $path = .Values.portal.path }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- print "---" | nindent 0 -}}
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ service:
|
|||||||
# Additional ports can be added by adding a dictionary key similar to the 'http' service.
|
# Additional ports can be added by adding a dictionary key similar to the 'http' service.
|
||||||
# @default -- See below
|
# @default -- See below
|
||||||
ports:
|
ports:
|
||||||
http:
|
main:
|
||||||
# -- Enables or disables the port
|
# -- Enables or disables the port
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user