From 35f130ea0801ac3e69cd71731624f9477e5e8594 Mon Sep 17 00:00:00 2001 From: Carmendelope Date: Fri, 24 Jun 2022 17:12:15 +0200 Subject: [PATCH] environment from configmap or secret not mandatory in task and crontask componentdefinition Signed-off-by: Carmendelope --- charts/vela-core/templates/defwithtemplate/cron-task.yaml | 4 ++-- charts/vela-core/templates/defwithtemplate/task.yaml | 4 ++-- charts/vela-minimal/templates/defwithtemplate/cron-task.yaml | 4 ++-- charts/vela-minimal/templates/defwithtemplate/task.yaml | 4 ++-- vela-templates/definitions/internal/component/cron-task.cue | 4 ++-- vela-templates/definitions/internal/component/task.cue | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/charts/vela-core/templates/defwithtemplate/cron-task.yaml b/charts/vela-core/templates/defwithtemplate/cron-task.yaml index c06658e5d..8ac5005c3 100644 --- a/charts/vela-core/templates/defwithtemplate/cron-task.yaml +++ b/charts/vela-core/templates/defwithtemplate/cron-task.yaml @@ -196,14 +196,14 @@ spec: // +usage=Specifies a source the value of this var should come from valueFrom?: { // +usage=Selects a key of a secret in the pod's namespace - secretKeyRef: { + secretKeyRef?: { // +usage=The name of the secret in the pod's namespace to select from name: string // +usage=The key of the secret to select from. Must be a valid secret key key: string } // +usage=Selects a key of a config map in the pod's namespace - configMapKeyRef: { + configMapKeyRef?: { // +usage=The name of the config map in the pod's namespace to select from name: string // +usage=The key of the config map to select from. Must be a valid secret key diff --git a/charts/vela-core/templates/defwithtemplate/task.yaml b/charts/vela-core/templates/defwithtemplate/task.yaml index e3135ca45..cdeea380f 100644 --- a/charts/vela-core/templates/defwithtemplate/task.yaml +++ b/charts/vela-core/templates/defwithtemplate/task.yaml @@ -149,14 +149,14 @@ spec: // +usage=Specifies a source the value of this var should come from valueFrom?: { // +usage=Selects a key of a secret in the pod's namespace - secretKeyRef: { + secretKeyRef?: { // +usage=The name of the secret in the pod's namespace to select from name: string // +usage=The key of the secret to select from. Must be a valid secret key key: string } // +usage=Selects a key of a config map in the pod's namespace - configMapKeyRef: { + configMapKeyRef?: { // +usage=The name of the config map in the pod's namespace to select from name: string // +usage=The key of the config map to select from. Must be a valid secret key diff --git a/charts/vela-minimal/templates/defwithtemplate/cron-task.yaml b/charts/vela-minimal/templates/defwithtemplate/cron-task.yaml index c06658e5d..8ac5005c3 100644 --- a/charts/vela-minimal/templates/defwithtemplate/cron-task.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/cron-task.yaml @@ -196,14 +196,14 @@ spec: // +usage=Specifies a source the value of this var should come from valueFrom?: { // +usage=Selects a key of a secret in the pod's namespace - secretKeyRef: { + secretKeyRef?: { // +usage=The name of the secret in the pod's namespace to select from name: string // +usage=The key of the secret to select from. Must be a valid secret key key: string } // +usage=Selects a key of a config map in the pod's namespace - configMapKeyRef: { + configMapKeyRef?: { // +usage=The name of the config map in the pod's namespace to select from name: string // +usage=The key of the config map to select from. Must be a valid secret key diff --git a/charts/vela-minimal/templates/defwithtemplate/task.yaml b/charts/vela-minimal/templates/defwithtemplate/task.yaml index e3135ca45..cdeea380f 100644 --- a/charts/vela-minimal/templates/defwithtemplate/task.yaml +++ b/charts/vela-minimal/templates/defwithtemplate/task.yaml @@ -149,14 +149,14 @@ spec: // +usage=Specifies a source the value of this var should come from valueFrom?: { // +usage=Selects a key of a secret in the pod's namespace - secretKeyRef: { + secretKeyRef?: { // +usage=The name of the secret in the pod's namespace to select from name: string // +usage=The key of the secret to select from. Must be a valid secret key key: string } // +usage=Selects a key of a config map in the pod's namespace - configMapKeyRef: { + configMapKeyRef?: { // +usage=The name of the config map in the pod's namespace to select from name: string // +usage=The key of the config map to select from. Must be a valid secret key diff --git a/vela-templates/definitions/internal/component/cron-task.cue b/vela-templates/definitions/internal/component/cron-task.cue index 1c1b9e846..eafe64341 100644 --- a/vela-templates/definitions/internal/component/cron-task.cue +++ b/vela-templates/definitions/internal/component/cron-task.cue @@ -198,14 +198,14 @@ template: { // +usage=Specifies a source the value of this var should come from valueFrom?: { // +usage=Selects a key of a secret in the pod's namespace - secretKeyRef: { + secretKeyRef?: { // +usage=The name of the secret in the pod's namespace to select from name: string // +usage=The key of the secret to select from. Must be a valid secret key key: string } // +usage=Selects a key of a config map in the pod's namespace - configMapKeyRef: { + configMapKeyRef?: { // +usage=The name of the config map in the pod's namespace to select from name: string // +usage=The key of the config map to select from. Must be a valid secret key diff --git a/vela-templates/definitions/internal/component/task.cue b/vela-templates/definitions/internal/component/task.cue index 3cab652d6..0e198314e 100644 --- a/vela-templates/definitions/internal/component/task.cue +++ b/vela-templates/definitions/internal/component/task.cue @@ -180,14 +180,14 @@ template: { // +usage=Specifies a source the value of this var should come from valueFrom?: { // +usage=Selects a key of a secret in the pod's namespace - secretKeyRef: { + secretKeyRef?: { // +usage=The name of the secret in the pod's namespace to select from name: string // +usage=The key of the secret to select from. Must be a valid secret key key: string } // +usage=Selects a key of a config map in the pod's namespace - configMapKeyRef: { + configMapKeyRef?: { // +usage=The name of the config map in the pod's namespace to select from name: string // +usage=The key of the config map to select from. Must be a valid secret key