ci: Add test case for issue 30880

With helm 3.18.0, we had a change in typeIs/typeOf gotemplate behavior where, for example: `typeOf .servicePort` has changed from `float64` to `json.Number`.

Signed-off-by: Marc Millien <marc.millien@lifen.fr>
pull/30888/head
Marc Millien 4 months ago
parent 707f1aee42
commit 63822a0abb
No known key found for this signature in database
GPG Key ID: 219F6F53CC8E6995

@ -127,6 +127,14 @@ keyInElement1 = "valueInElement1"`,
tpl: `{{ lookup "v1" "Namespace" "" "unlikelynamespace99999999" }}`,
expect: `map[]`,
vars: `["one", "two"]`,
}, {
tpl: `{{ typeOf . }}`,
expect: `string`,
vars: `"WEB"`,
}, {
tpl: `{{ typeOf . }}`,
expect: `int`,
vars: `80`
}}
for _, tt := range tests {

Loading…
Cancel
Save