Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Change-Id: I8a4f7031c81fe1f47f1a0a55276b415bb6d59732
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Dec 23, 2024
1 parent eab0a2b commit 98734a7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const (
SpoApparmorProfileName = "spo-apparmor"

// BpfRecorderApparmorProfile is the default file name for apparmor profile used
// by the bpf-recorder contaienr part of spod daemonset.
// by the bpf-recorder container part of spod daemonset.
BpfRecorderApparmorProfile = "bpfrecorder-apparmor.yaml"

// BpfRecorderApparmorProfileName is the name of the apparmor profile used by
Expand Down
6 changes: 3 additions & 3 deletions internal/pkg/nonrootenabler/nonrootenabler.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (n *NonRootEnabler) Run(logger logr.Logger, runtime, kubeletDir string, app
for _, p := range []string{config.SpoApparmorProfile, config.BpfRecorderApparmorProfile} {
profile := path.Join(config.DefaultSpoProfilePath, p)
logger.Info("Installing apparmor profile: " + profile)
if err := n.impl.InsatllApparmor(aaManager, profile); err != nil {
if err := n.impl.InstallApparmor(aaManager, profile); err != nil {
return fmt.Errorf("installing apparmor profile: %w", err)
}
}
Expand All @@ -150,7 +150,7 @@ type impl interface {
Chown(name string, uid, gid int) error
CopyDirContentsLocal(src, dst string) error
SaveKubeletConfig(filename string, kubeletConfig []byte, perm os.FileMode) error
InsatllApparmor(manager apparmorprofile.ProfileManager, filename string) error
InstallApparmor(manager apparmorprofile.ProfileManager, filename string) error
}

type defaultImpl struct{}
Expand Down Expand Up @@ -183,7 +183,7 @@ func (*defaultImpl) SaveKubeletConfig(filename string, kubeletConfig []byte, per
return os.WriteFile(filename, kubeletConfig, perm)
}

func (*defaultImpl) InsatllApparmor(manager apparmorprofile.ProfileManager, filename string) error {
func (*defaultImpl) InstallApparmor(manager apparmorprofile.ProfileManager, filename string) error {
content, err := os.ReadFile(filename)
if err != nil {
return fmt.Errorf("reading apparmor profile content: %w", err)
Expand Down
78 changes: 39 additions & 39 deletions internal/pkg/nonrootenabler/nonrootenablerfakes/fake_impl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98734a7

Please sign in to comment.