From 3f116c7f10fa4ed38493c909e71fe2d181a0dabc Mon Sep 17 00:00:00 2001 From: Somefive Date: Mon, 11 Jul 2022 15:28:23 +0800 Subject: [PATCH] Fix: init container bug Signed-off-by: Somefive --- charts/vela-core/templates/defwithtemplate/init-container.yaml | 2 +- .../vela-minimal/templates/defwithtemplate/init-container.yaml | 2 +- vela-templates/definitions/internal/trait/init-container.cue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/vela-core/templates/defwithtemplate/init-container.yaml b/charts/vela-core/templates/defwithtemplate/init-container.yaml index 593b534ee..4c5c3cfac 100644 --- a/charts/vela-core/templates/defwithtemplate/init-container.yaml +++ b/charts/vela-core/templates/defwithtemplate/init-container.yaml @@ -99,7 +99,7 @@ spec: initMountPath: string // +usage=Specify the extra volume mounts for the init container - extraVolumeMounts: [{ + extraVolumeMounts: [...{ // +usage=The name of the volume to be mounted name: string // +usage=The mountPath for mount in the init container diff --git a/charts/vela-minimal/templates/defwithtemplate/init-container.yaml b/charts/vela-minimal/templates/defwithtemplate/init-container.yaml index 593b534ee..4c5c3cfac 100644 --- a/charts/vela-minimal/templates/defwithtemplate/init-container.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/init-container.yaml @@ -99,7 +99,7 @@ spec: initMountPath: string // +usage=Specify the extra volume mounts for the init container - extraVolumeMounts: [{ + extraVolumeMounts: [...{ // +usage=The name of the volume to be mounted name: string // +usage=The mountPath for mount in the init container diff --git a/vela-templates/definitions/internal/trait/init-container.cue b/vela-templates/definitions/internal/trait/init-container.cue index 1362661f4..af000805f 100644 --- a/vela-templates/definitions/internal/trait/init-container.cue +++ b/vela-templates/definitions/internal/trait/init-container.cue @@ -94,7 +94,7 @@ template: { initMountPath: string // +usage=Specify the extra volume mounts for the init container - extraVolumeMounts: [{ + extraVolumeMounts: [...{ // +usage=The name of the volume to be mounted name: string // +usage=The mountPath for mount in the init container