From 4ef65da936c1c5f2bcd9eb00e78f0aba2ca1b204 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 | 8 +++++++- 1 file changed, 7 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..6415a9d5f 100644 --- a/content/en/docs/chart_template_guide/function_list.md +++ b/content/en/docs/chart_template_guide/function_list.md @@ -2019,7 +2019,13 @@ 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 if your operand is from the `values.yaml` file +it will be treated as a `float64` because the `values.yaml` file is parsed with the Kubernetes +yaml parser. For example th following will return true even if `looksLikeInt: 123`: + +``` +kindIs "float64" .Values.looksLikeInt +``` ### Type Functions