Fix(CUE): fix volumns variable err bug in vela-cli

Signed-off-by: yukunjie <yukunjie007@163.com>
Co-authored-by: yukunjie <yukunjie007@163.com>
(cherry picked from commit b605e0857c)
This commit is contained in:
yukunjie
2024-06-17 10:40:59 +08:00
committed by github-actions[bot]
parent fa8350bc50
commit 22c3e995a2
2 changed files with 10 additions and 10 deletions

View File

@@ -46,11 +46,11 @@ spec:
} }
} }
} }
if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath { },
{ if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath {
name: "hostpath-" + v.name {
path: v.path name: "hostpath-" + v.name
} path: v.path
} }
}, },
] ]

View File

@@ -41,11 +41,11 @@ template: {
} }
} }
} }
if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath { },
{ if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath {
name: "hostpath-" + v.name {
path: v.path name: "hostpath-" + v.name
} path: v.path
} }
}, },
] ]