Skip to content

Commit

Permalink
remove seccomp profile path
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-chenzz committed Apr 26, 2023
1 parent 806b301 commit c96188a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/kubelet/kuberuntime/security_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ func (m *kubeGenericRuntimeManager) determineEffectiveSecurityContext(pod *v1.Po
ReadonlyPaths: securitycontext.ConvertToRuntimeReadonlyPaths(effectiveSc.ProcMount),
}
}

// TODO: Deprecated, remove after we switch to Seccomp field
// set SeccompProfilePath.
var err error
synthesized.SeccompProfilePath, err = m.getSeccompProfilePath(pod.Annotations, container.Name, pod.Spec.SecurityContext, container.SecurityContext, m.seccompDefault)
if err != nil {
return nil, err
}

synthesized.Seccomp, err = m.getSeccompProfile(pod.Annotations, container.Name, pod.Spec.SecurityContext, container.SecurityContext, m.seccompDefault)
if err != nil {
Expand Down

0 comments on commit c96188a

Please sign in to comment.