Skip to content

Commit

Permalink
fix: kindIs function documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
  • Loading branch information
TerryHowe committed Nov 20, 2024
1 parent 0d578e7 commit 292321d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion content/en/docs/chart_template_guide/function_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 292321d

Please sign in to comment.