From 292321dc2c52495557728b88f1715ad035843a55 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Thu, 14 Nov 2024 12:51:08 -0700 Subject: [PATCH] fix: kindIs function documentation Signed-off-by: Terry Howe --- content/en/docs/chart_template_guide/function_list.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/en/docs/chart_template_guide/function_list.md b/content/en/docs/chart_template_guide/function_list.md index 2628cd35d..601e1f57f 100644 --- a/content/en/docs/chart_template_guide/function_list.md +++ b/content/en/docs/chart_template_guide/function_list.md @@ -2019,7 +2019,14 @@ The above would return `string`. For simple tests (like in `if` blocks), the kindIs "int" 123 ``` -The above will return `true`. +The above will return `true`, but keep in mind that if your operand is from +the `values.yaml` file it will be treated as a `float64`. The reason for this +is because the `values.yaml` file is parsed with the Kubernetes yaml parser. +For example the following will return true even if `looksLikeInt: 123`: + +``` +kindIs "float64" .Values.looksLikeInt +``` ### Type Functions