mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
fix(helm): renamed helm directory to charts
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "common.labels" -}}
|
||||
app.kubernetes.io/name: {{ .Values.name }}
|
||||
{{- with .Values.additionalLabels }}
|
||||
{{ toYaml . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "common.annotations" -}}
|
||||
{{- with .Values.annotations }}
|
||||
{{ toYaml . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Returns string "true" or empty which will be evaluated to boolean false
|
||||
*/}}
|
||||
{{- define "deployment.create" -}}
|
||||
{{- if not .Values.authOnly }}
|
||||
{{- true }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Returns string "true" or empty which will be evaluated to boolean false
|
||||
*/}}
|
||||
{{- define "service.create" -}}
|
||||
{{- if and .Values.service.create (include "deployment.create" .) }}
|
||||
{{- true }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Returns string "true" or empty which will be evaluated to boolean false
|
||||
*/}}
|
||||
{{- define "ingressRoute.create" -}}
|
||||
{{- if and .Values.ingressRoute.create (or .Values.authOnly (include "service.create" .)) }}
|
||||
{{- true }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Returns string "true" or empty which will be evaluated to boolean false
|
||||
*/}}
|
||||
{{- define "auth.create" -}}
|
||||
{{- if or .Values.authOnly (and .Values.auth.enabled .Values.auth.create (include "ingressRoute.create" .)) }}
|
||||
{{- true }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user