From e5338981922535cd978e3dd3e57722f3ca1fb0e0 Mon Sep 17 00:00:00 2001 From: S Code Man <30977678+scodeman@users.noreply.github.com> Date: Wed, 3 Sep 2025 05:59:44 +0800 Subject: [PATCH] Fix: Address Wrong `Storage` trait for hostPath volumes #6811 (#6812) * fix: Address Wrong `Storage` trait for hostPath volumes #6811 Signed-off-by: S Code Man <30977678+scodeman@users.noreply.github.com> * fix: use tab instead of space Signed-off-by: S Code Man <30977678+scodeman@users.noreply.github.com> * chore: run make reviewable Signed-off-by: S Code Man <30977678+scodeman@users.noreply.github.com> --------- Signed-off-by: S Code Man <30977678+scodeman@users.noreply.github.com> --- charts/vela-core/templates/defwithtemplate/storage.yaml | 5 ++++- vela-templates/definitions/internal/trait/storage.cue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/vela-core/templates/defwithtemplate/storage.yaml b/charts/vela-core/templates/defwithtemplate/storage.yaml index fa3691e37..c6783d548 100644 --- a/charts/vela-core/templates/defwithtemplate/storage.yaml +++ b/charts/vela-core/templates/defwithtemplate/storage.yaml @@ -57,7 +57,10 @@ spec: if parameter.hostPath != _|_ for v in parameter.hostPath { { name: "hostpath-" + v.name - path: v.path + hostPath: { + path: v.path + type: v.type + } } }, ] diff --git a/vela-templates/definitions/internal/trait/storage.cue b/vela-templates/definitions/internal/trait/storage.cue index a2c4cd173..88be2b356 100644 --- a/vela-templates/definitions/internal/trait/storage.cue +++ b/vela-templates/definitions/internal/trait/storage.cue @@ -51,7 +51,10 @@ template: { if parameter.hostPath != _|_ for v in parameter.hostPath { { name: "hostpath-" + v.name - path: v.path + hostPath: { + path: v.path + type: v.type + } } }, ]