We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Secure
1 parent 6da0ff8 commit e27b47dCopy full SHA for e27b47d
workflow/controller/operator.go
@@ -4023,6 +4023,9 @@ func (woc *wfOperationCtx) setStoredWfSpec(ctx context.Context) error {
4023
wfutil.JoinWorkflowMetaData(&woc.wf.ObjectMeta, &wfDefault.ObjectMeta)
4024
workflowTemplateSpec = wftHolder.GetWorkflowSpec()
4025
}
4026
+ if len(woc.execWf.Spec.PodSpecPatch) > 0 && woc.controller.Config.WorkflowRestrictions.MustNotChangeSpec() {
4027
+ return fmt.Errorf("PodSpecPatch may not be setted during execution when the controller is set `templateReferencing: Secure`")
4028
+ }
4029
// Update the Entrypoint, ShutdownStrategy and Suspend
4030
if woc.needsStoredWfSpecUpdate() {
4031
// Join workflow, workflow template, and workflow default metadata to workflow spec.
0 commit comments