Skip to content

Commit 6df4552

Browse files
Update pod.js
Dont cast to string when a tag is not defined.
1 parent f8cc9ea commit 6df4552

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/transform/pod.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ function transformContainers (inputValues, inputChart, scope = '') {
3030
const imageTag = tmp[1]
3131

3232
containerValues.image = image
33-
containerValues.imageTag = imageTag.toString() // prevent casting to Number
34-
33+
if (imageTag) {
34+
containerValues.imageTag = imageTag.toString() // prevent casting to Number
35+
}
36+
3537
container.image = `"{{ ${templateValuePathPrefix}.image }}:`
3638
+ `{{ ${templateValuePathPrefix}.imageTag }}"`
3739

0 commit comments

Comments
 (0)