rancher-charts/charts/rancher-monitoring/rancher-monitoring-crd/14.5.100-rc00/templates/_helpers.tpl

29 lines
697 B
Smarty
Raw Normal View History

Rebase Monitoring to 14.5.0 and update all dependencies (#1072) * Switch rancher-monitoring to Git-based package Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com> * Move Monitoring dependencies to separate packages * Switch rancher-grafana to Git-based and add annotations * Switch rancher-kube-state-metrics to Git-based and add annotations * Switch rancher-prometheus-adapter to Git-based and add annotations * Switch rancher-node-exporter to Git-based and add annotations * Rebase to kube-prometheus-stack-10.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-10.0.0 * Rebase to kube-prometheus-stack-11.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-11.0.0 * Rebase to kube-prometheus-stack-12.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-12.0.0 * Rebase to kube-prometheus-stack-13.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-13.0.0 * Rebase to kube-prometheus-stack-14.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-14.0.0 * Rebase to kube-prometheus-stack-14.5.0 * Update rancher-monitoring to new base kube-prometheus-stack-14.5.0 * fixup rancher-monitoring * Switch nginx port for Prometheus to 8081 This is necessary since prometheusConfigReloaderImage now takes port 8080 in the Prometheus pod due to a change introduced in Prometheus Operator v0.43.0 in https://github.com/prometheus-operator/prometheus-operator/commit/dcf34c55bc7596fe9135b6a37344c7578586c80d. This value is hard-coded in the operator in https://github.com/prometheus-operator/prometheus-operator/blob/bcf61aacda782d6c8ffc79f55ea1def9cfd97933/pkg/operator/statefulset.go#L25. * Rebase to grafana-5.7.7 * Update rancher-grafana to new base grafana-5.7.7 * Rebase to grafana-6.0.0 * Update rancher-grafana to new base grafana-6.0.0 * Rebase to grafana-6.6.4 * Update rancher-grafana to new base grafana-6.6.4 * fixup rancher-grafana * Add linux annotations to image-renderer * Use default grafana serviceAccount if unavailable for image-renderer * Rebase to kube-state-metrics-helm-chart-2.13.1 * Update rancher-kube-state-metrics to new base kube-state-metrics-helm-chart-2.13.1 * fixup kube-state-metrics * Rebase to prometheus-node-exporter-1.16.2 * Update rancher-node-exporter to new base prometheus-node-exporter-1.16.2 * fixup node-exporter * Rebase to prometheus-adapter-2.12.1 * Update rancher-prometheus-adapter to new base prometheus-adapter-2.12.1 * fixup prometheus-adapter * Update CRD chart version * Add original chart before all commits were made * Add chart after all commits were made * Delete charts * Patch the chart version to 1 and reset packageVersion to 00 * Patch CRD chart version
2021-04-07 19:45:48 +00:00
# Rancher
{{- define "system_default_registry" -}}
{{- if .Values.global.cattle.systemDefaultRegistry -}}
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}}
{{- end -}}
{{- end -}}
# Windows Support
{{/*
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" -}}
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
beta.kubernetes.io/os: linux
{{- else -}}
kubernetes.io/os: linux
{{- end -}}
{{- end -}}