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