mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 15:59:09 +00:00
parent
a9e5b0efd0
commit
533f78729b
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: common
|
name: common
|
||||||
description: Function library for k8s-at-home charts
|
description: Function library for k8s-at-home charts
|
||||||
type: library
|
type: library
|
||||||
version: 1.4.0
|
version: 1.5.0
|
||||||
keywords:
|
keywords:
|
||||||
- k8s-at-home
|
- k8s-at-home
|
||||||
- common
|
- common
|
||||||
|
@ -53,14 +53,14 @@ spec:
|
|||||||
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | indent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.affinity }}
|
{{- with .Values.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | indent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.tolerations }}
|
{{- with .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | indent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
{{- /* Generate primary ingress */ -}}
|
{{- /* Generate primary ingress */ -}}
|
||||||
{{- $ingressValues := .Values.ingress -}}
|
{{- $ingressValues := .Values.ingress -}}
|
||||||
{{- $_ := set $ingressValues "svcPort" $svcPort -}}
|
|
||||||
{{- $_ := set . "ObjectValues" (dict "ingress" $ingressValues) -}}
|
{{- $_ := set . "ObjectValues" (dict "ingress" $ingressValues) -}}
|
||||||
{{- include "common.classes.ingress" . }}
|
{{- include "common.classes.ingress" . }}
|
||||||
|
|
||||||
@ -13,7 +12,6 @@
|
|||||||
{{- if $extraIngress.enabled -}}
|
{{- if $extraIngress.enabled -}}
|
||||||
{{- print ("---") | nindent 0 -}}
|
{{- print ("---") | nindent 0 -}}
|
||||||
{{- $ingressValues := $extraIngress -}}
|
{{- $ingressValues := $extraIngress -}}
|
||||||
{{- $_ := set $ingressValues "svcPort" $svcPort -}}
|
|
||||||
{{- if not $ingressValues.nameSuffix -}}
|
{{- if not $ingressValues.nameSuffix -}}
|
||||||
{{- $_ := set $ingressValues "nameSuffix" $index -}}
|
{{- $_ := set $ingressValues "nameSuffix" $index -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@ -54,14 +54,14 @@ spec:
|
|||||||
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | indent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.affinity }}
|
{{- with .Values.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | indent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.tolerations }}
|
{{- with .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | indent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
{{- if hasKey $values "nameSuffix" -}}
|
{{- if hasKey $values "nameSuffix" -}}
|
||||||
{{- $ingressName = printf "%v-%v" $ingressName $values.nameSuffix -}}
|
{{- $ingressName = printf "%v-%v" $ingressName $values.nameSuffix -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- $svcPort := $values.svcPort -}}
|
{{- $svcName := $values.serviceName | default (include "common.names.fullname" .) -}}
|
||||||
|
{{- $svcPort := $values.servicePort | default $.Values.service.port.port -}}
|
||||||
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
|
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@ -39,7 +40,7 @@ spec:
|
|||||||
{{- range .paths }}
|
{{- range .paths }}
|
||||||
- path: {{ .path }}
|
- path: {{ .path }}
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $ingressName }}
|
serviceName: {{ $svcName }}
|
||||||
servicePort: {{ $svcPort }}
|
servicePort: {{ $svcPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{- if .Values.common -}}
|
{{- if .Values.common -}}
|
||||||
{{- $defaultValues := deepCopy .Values.common -}}
|
{{- $defaultValues := deepCopy .Values.common -}}
|
||||||
{{- $userValues := deepCopy (omit .Values "common") -}}
|
{{- $userValues := deepCopy (omit .Values "common") -}}
|
||||||
{{- $mergedValues := mustMerge $userValues $defaultValues -}}
|
{{- $mergedValues := mustMergeOverwrite $defaultValues $userValues -}}
|
||||||
{{- $_ := set . "Values" (deepCopy $mergedValues) -}}
|
{{- $_ := set . "Values" (deepCopy $mergedValues) -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -141,6 +141,12 @@ additionalVolumes: []
|
|||||||
|
|
||||||
additionalVolumeMounts: []
|
additionalVolumeMounts: []
|
||||||
|
|
||||||
|
nodeSelector: {}
|
||||||
|
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
vpn:
|
vpn:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
Loading…
Reference in New Issue
Block a user