mirror of https://git.rancher.io/charts
Trigger windows components in logging if either windows field is true
parent
30a749a867
commit
19ab551eef
|
@ -1,6 +1,6 @@
|
||||||
--- charts-original/templates/_helpers.tpl
|
--- charts-original/templates/_helpers.tpl
|
||||||
+++ charts/templates/_helpers.tpl
|
+++ charts/templates/_helpers.tpl
|
||||||
@@ -56,3 +56,92 @@
|
@@ -56,3 +56,101 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -14,13 +14,22 @@
|
||||||
+{{- end -}}
|
+{{- end -}}
|
||||||
+
|
+
|
||||||
+{{- define "windowsEnabled" }}
|
+{{- define "windowsEnabled" }}
|
||||||
|
+{{ $windowsEnabled := false }}
|
||||||
+{{- if not (kindIs "invalid" .Values.global.cattle.windows) }}
|
+{{- if not (kindIs "invalid" .Values.global.cattle.windows) }}
|
||||||
+{{- if not (kindIs "invalid" .Values.global.cattle.windows.enabled) }}
|
+{{- if not (kindIs "invalid" .Values.global.cattle.windows.enabled) }}
|
||||||
+{{- if .Values.global.cattle.windows.enabled }}
|
+{{- if .Values.global.cattle.windows.enabled }}
|
||||||
+true
|
+{{- $windowsEnabled = true }}
|
||||||
+{{- end }}
|
+{{- end }}
|
||||||
+{{- end }}
|
+{{- end }}
|
||||||
+{{- end }}
|
+{{- end }}
|
||||||
|
+{{- if not (kindIs "invalid" .Values.rke2Windows) }}
|
||||||
|
+{{- if not (kindIs "invalid" .Values.rke2Windows.enabled) }}
|
||||||
|
+{{- if .Values.rke2Windows.enabled }}
|
||||||
|
+{{- $windowsEnabled = true }}
|
||||||
|
+{{- end }}
|
||||||
|
+{{- end }}
|
||||||
|
+{{- end }}
|
||||||
|
+{{ $windowsEnabled }}
|
||||||
+{{- end }}
|
+{{- end }}
|
||||||
+
|
+
|
||||||
+{{- define "windowsPathPrefix" -}}
|
+{{- define "windowsPathPrefix" -}}
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
rbac:
|
rbac:
|
||||||
enabled: true
|
enabled: true
|
||||||
psp:
|
psp:
|
||||||
@@ -95,3 +103,109 @@
|
@@ -95,3 +103,117 @@
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
metricRelabelings: []
|
metricRelabelings: []
|
||||||
relabelings: []
|
relabelings: []
|
||||||
|
@ -131,9 +131,10 @@
|
||||||
+ cattle:
|
+ cattle:
|
||||||
+ systemDefaultRegistry: ""
|
+ systemDefaultRegistry: ""
|
||||||
+ # Uncomment the below two lines to either enable or disable Windows logging. If this chart is
|
+ # Uncomment the below two lines to either enable or disable Windows logging. If this chart is
|
||||||
+ # installed via the Rancher UI, it will set this value to "true" if the cluster is a Windows
|
+ # installed via the Rancher UI, it will set this value to "true" if the cluster is an RKE1 Windows
|
||||||
+ # cluster. In that scenario, if you would like to disable Windows logging on Windows clusters,
|
+ # cluster. In that scenario, if you would like to disable Windows logging on Windows clusters,
|
||||||
+ # set the value below to "false".
|
+ # set both this value below and rke2Windows.enabled to false.
|
||||||
|
+ #
|
||||||
+ # windows:
|
+ # windows:
|
||||||
+ # enabled: true
|
+ # enabled: true
|
||||||
+ # Change the "dockerRootDirectory" if the default Docker directory has changed.
|
+ # Change the "dockerRootDirectory" if the default Docker directory has changed.
|
||||||
|
@ -146,3 +147,11 @@
|
||||||
+ rkeWindowsPathPrefix: "c:\\"
|
+ rkeWindowsPathPrefix: "c:\\"
|
||||||
+ seLinux:
|
+ seLinux:
|
||||||
+ enabled: false
|
+ enabled: false
|
||||||
|
+
|
||||||
|
+# Uncomment the below two lines to either enable or disable Windows logging. If this chart is
|
||||||
|
+# installed via the Rancher UI, you will be able to set this value in an RKE2 Windows
|
||||||
|
+# cluster. In that scenario, if you would like to disable Windows logging on Windows clusters,
|
||||||
|
+# set this value below to false.
|
||||||
|
+# rke2Windows:
|
||||||
|
+# enabled: false
|
||||||
|
\ No newline at end of file
|
||||||
|
|
Loading…
Reference in New Issue