Initial commit
This commit is contained in:
40
charts/loki/templates/loki-canary/_helpers.tpl
Normal file
40
charts/loki/templates/loki-canary/_helpers.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
{{/*
|
||||
canary fullname
|
||||
*/}}
|
||||
{{- define "loki-canary.fullname" -}}
|
||||
{{ include "loki.name" . }}-canary
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
canary common labels
|
||||
*/}}
|
||||
{{- define "loki-canary.labels" -}}
|
||||
{{ include "loki.labels" . }}
|
||||
app.kubernetes.io/component: canary
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
canary selector labels
|
||||
*/}}
|
||||
{{- define "loki-canary.selectorLabels" -}}
|
||||
{{ include "loki.selectorLabels" . }}
|
||||
app.kubernetes.io/component: canary
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Docker image name for loki-canary
|
||||
*/}}
|
||||
{{- define "loki-canary.image" -}}
|
||||
{{- $dict := dict "service" .Values.lokiCanary.image "global" .Values.global.image "defaultVersion" .Chart.AppVersion -}}
|
||||
{{- include "loki.baseImage" $dict -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
canary priority class name
|
||||
*/}}
|
||||
{{- define "loki-canary.priorityClassName" -}}
|
||||
{{- $pcn := coalesce .Values.global.priorityClassName .Values.lokiCanary.priorityClassName .Values.read.priorityClassName -}}
|
||||
{{- if $pcn }}
|
||||
priorityClassName: {{ $pcn }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user