diff --git a/pkg/controller/nodes/task/taskexec_context.go b/pkg/controller/nodes/task/taskexec_context.go index 4495c1e24..39a60e0c8 100644 --- a/pkg/controller/nodes/task/taskexec_context.go +++ b/pkg/controller/nodes/task/taskexec_context.go @@ -64,14 +64,6 @@ func (t taskExecutionMetadata) GetMaxAttempts() uint32 { return t.maxAttempts } -func (t taskExecutionMetadata) GetSecurityContext() core.SecurityContext { - return core.SecurityContext{ - RunAs: &core.Identity{ - K8SServiceAccount: t.GetK8sServiceAccount(), - }, - } -} - type taskExecutionContext struct { handler.NodeExecutionContext tm taskExecutionMetadata