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