diff --git a/charts/vela-core/templates/defwithtemplate/vela-cli.yaml b/charts/vela-core/templates/defwithtemplate/vela-cli.yaml index 5fac64b5d..7998ae35b 100644 --- a/charts/vela-core/templates/defwithtemplate/vela-cli.yaml +++ b/charts/vela-core/templates/defwithtemplate/vela-cli.yaml @@ -46,11 +46,11 @@ spec: } } } - if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath { - { - name: "hostpath-" + v.name - path: v.path - } + }, + if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath { + { + name: "hostpath-" + v.name + path: v.path } }, ] diff --git a/vela-templates/definitions/internal/workflowstep/vela-cli.cue b/vela-templates/definitions/internal/workflowstep/vela-cli.cue index c2b4a8388..636fb51f4 100644 --- a/vela-templates/definitions/internal/workflowstep/vela-cli.cue +++ b/vela-templates/definitions/internal/workflowstep/vela-cli.cue @@ -41,11 +41,11 @@ template: { } } } - if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath { - { - name: "hostpath-" + v.name - path: v.path - } + }, + if parameter.storage != _|_ && parameter.storage.hostPath != _|_ for v in parameter.storage.hostPath { + { + name: "hostpath-" + v.name + path: v.path } }, ]