With this change a request for a virtual machine with 3 vCPUs will
reserve exactly the same amount of physical compute, as a request for a
Clickhouse instance with `{"resources": {"cpu": "3"}}` in its values,
with the scaling factor being KubeVirt's CPU allocation ratio.
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
5 lines
208 B
Smarty
5 lines
208 B
Smarty
{{- define "cozy-lib.checkInput" }}
|
|
{{- if not (kindIs "slice" .) }}
|
|
{{- fail (printf "called cozy-lib function without global scope, expected [<arg>, $], got %s" (kindOf .)) }}
|
|
{{- end }}
|
|
{{- end }}
|