kubernetes-sigs / cri-tools

CLI and validation tools for Kubelet Container Runtime Interface (CRI) .
Apache License 2.0
1.63k stars 445 forks source link

Remove log message for AppArmor profiles #1509

Closed saschagrunert closed 1 month ago

saschagrunert commented 1 month ago

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

There is no output from apparmor_parser while loading the profiles, which results in meaningless messages during the tests like:

time="2024-07-22T08:51:18Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:18Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:19Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:19Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:20Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:20Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:21Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:21Z" level=info msg="Loaded profiles: []"
time="2024-07-22T08:51:21Z" level=info msg="Loaded profiles: []"

We can skip this message and only report errors for the preloading of profiles.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

Removed meaningless `"Loaded profiles: []"` message during AppArmor `critest` suite runs.
kwilczynski commented 1 month ago

/approve /lgtm

k8s-ci-robot commented 1 month ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kwilczynski, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes-sigs/cri-tools/blob/master/OWNERS)~~ [saschagrunert] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment