mirror of https://git.rancher.io/charts
28 lines
724 B
Smarty
28 lines
724 B
Smarty
|
{{/* Ensure namespace is set the same everywhere */}}
|
||
|
{{- define "cis.namespace" -}}
|
||
|
{{- .Release.Namespace | default "cis-operator-system" -}}
|
||
|
{{- end -}}
|
||
|
|
||
|
{{- define "system_default_registry" -}}
|
||
|
{{- if .Values.global.cattle.systemDefaultRegistry -}}
|
||
|
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
|
||
|
{{- else -}}
|
||
|
{{- "" -}}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|
||
|
|
||
|
{{/*
|
||
|
Windows cluster will add default taint for linux nodes,
|
||
|
add below linux tolerations to workloads could be scheduled to those linux nodes
|
||
|
*/}}
|
||
|
{{- define "linux-node-tolerations" -}}
|
||
|
- key: "cattle.io/os"
|
||
|
value: "linux"
|
||
|
effect: "NoSchedule"
|
||
|
operator: "Equal"
|
||
|
{{- end -}}
|
||
|
|
||
|
{{- define "linux-node-selector" -}}
|
||
|
kubernetes.io/os: linux
|
||
|
{{- end -}}
|