Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ccojocar committed Oct 24, 2022
1 parent f6ffdd9 commit cd2c7f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/pkg/manager/spod/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ func getSeccompLocalhostProfile(nodes *corev1.NodeList) string {
containerRuntime = parts[0]
}
// cri-o expects the local seccomp profile to be prefixed with 'localhost'
// see for more details: https://github.com/cri-o/cri-o/blob/1e6fd9c520d03d47835d1d4c3209e0f77c38f542/internal/config/seccomp/seccomp.go#L240
// see for more details:
// https://github.com/cri-o/cri-o/blob/1e6fd9c520d03d47835d1d4c3209e0f77c38f542/internal/config/seccomp/seccomp.go#L240
if containerRuntime == "cri-o" {
return path.Join("localhost", bindata.LocalSeccompProfilePath)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/manager/spod/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"testing"

"github.com/stretchr/testify/require"

corev1 "k8s.io/api/core/v1"

"sigs.k8s.io/security-profiles-operator/internal/pkg/config"
"sigs.k8s.io/security-profiles-operator/internal/pkg/manager/spod/bindata"
)
Expand Down

0 comments on commit cd2c7f4

Please sign in to comment.