You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6639e5c
Browse filesBrowse the repository at this point in the historyBrowse files
(dict "key" "systemReservedCpu" "value" $kubeletOverride.systemReservedCpu "pattern" `^[0-9]+(\.[0-9]+)?m?$` "hint" "a valid Kubernetes CPU quantity (e.g. 100m, 0.5, 1)")
221
+
(dict "key" "kubeReservedCpu" "value" $kubeletOverride.kubeReservedCpu "pattern" `^[0-9]+(\.[0-9]+)?m?$` "hint" "a valid Kubernetes CPU quantity (e.g. 100m, 0.5, 1)")
222
222
}}
223
223
{{- range $validations }}
224
224
{{- if and .value (not (regexMatch .pattern (.value | toString))) }}
@@ -227,13 +227,13 @@ metadata:
227
227
{{- end }}
228
228
{{/* Validate absolute eviction threshold formats before converting */}}
229
229
{{- if not (hasSuffix "%" $evictionHardMemory) }}
230
-
{{- if not (regexMatch `^[0-9]+(\.[0-9]+)?(Ki|Mi|Gi|Ti|Pi|Ei|k|M|G|T|P|E)?$` $evictionHardMemory) }}
231
-
{{- fail (printf "nodeGroup %s: invalid evictionHardMemory value %q — must be a percentage (e.g. 7%%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi)" $groupName $evictionHardMemory) }}
230
+
{{- if not (regexMatch `^[0-9]+(\.[0-9]+)?([eE][+-]?[0-9]+)?(Ki|Mi|Gi|Ti|Pi|Ei|k|M|G|T|P|E)?$` $evictionHardMemory) }}
231
+
{{- fail (printf "nodeGroup %s: invalid evictionHardMemory value %q — must be a percentage (e.g. 7%%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi, 1e9)" $groupName $evictionHardMemory) }}
232
232
{{- end }}
233
233
{{- end }}
234
234
{{- if not (hasSuffix "%" $evictionSoftMemory) }}
235
-
{{- if not (regexMatch `^[0-9]+(\.[0-9]+)?(Ki|Mi|Gi|Ti|Pi|Ei|k|M|G|T|P|E)?$` $evictionSoftMemory) }}
236
-
{{- fail (printf "nodeGroup %s: invalid evictionSoftMemory value %q — must be a percentage (e.g. 10%%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi)" $groupName $evictionSoftMemory) }}
235
+
{{- if not (regexMatch `^[0-9]+(\.[0-9]+)?([eE][+-]?[0-9]+)?(Ki|Mi|Gi|Ti|Pi|Ei|k|M|G|T|P|E)?$` $evictionSoftMemory) }}
236
+
{{- fail (printf "nodeGroup %s: invalid evictionSoftMemory value %q — must be a percentage (e.g. 10%%) or a valid Kubernetes memory quantity (e.g. 500Mi, 1Gi, 1e9)" $groupName $evictionSoftMemory) }}
237
237
{{- end }}
238
238
{{- end }}
239
239
{{- if and (hasSuffix "%" $evictionHardMemory) (hasSuffix "%" $evictionSoftMemory) }}
0 commit comments