Initial commit
This commit is contained in:
47
charts/loki/templates/gateway/_helpers-gateway.tpl
Normal file
47
charts/loki/templates/gateway/_helpers-gateway.tpl
Normal file
@@ -0,0 +1,47 @@
|
||||
{{/*
|
||||
gateway fullname
|
||||
*/}}
|
||||
{{- define "loki.gatewayFullname" -}}
|
||||
{{ include "loki.fullname" . }}-gateway
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
gateway common labels
|
||||
*/}}
|
||||
{{- define "loki.gatewayLabels" -}}
|
||||
{{ include "loki.labels" . }}
|
||||
app.kubernetes.io/component: gateway
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
gateway selector labels
|
||||
*/}}
|
||||
{{- define "loki.gatewaySelectorLabels" -}}
|
||||
{{ include "loki.selectorLabels" . }}
|
||||
app.kubernetes.io/component: gateway
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
gateway auth secret name
|
||||
*/}}
|
||||
{{- define "loki.gatewayAuthSecret" -}}
|
||||
{{ .Values.gateway.basicAuth.existingSecret | default (include "loki.gatewayFullname" . ) }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
gateway Docker image
|
||||
*/}}
|
||||
{{- define "loki.gatewayImage" -}}
|
||||
{{- $dict := dict "service" .Values.gateway.image "global" .Values.global.image -}}
|
||||
{{- include "loki.baseImage" $dict -}}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
gateway priority class name
|
||||
*/}}
|
||||
{{- define "loki.gatewayPriorityClassName" -}}
|
||||
{{- $pcn := coalesce .Values.global.priorityClassName .Values.gateway.priorityClassName -}}
|
||||
{{- if $pcn }}
|
||||
priorityClassName: {{ $pcn }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user