Skip to content

Commit

Permalink
convert moby error to debug log
Browse files Browse the repository at this point in the history
Signed-off-by: Prateek <[email protected]>
  • Loading branch information
Prateeknandle committed Feb 3, 2025
1 parent b71c3c6 commit 7f62178
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion KubeArmor/core/containerdHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func (dm *KubeArmorDaemon) UpdateContainerdContainer(ctx context.Context, contai
// get container information from containerd client
container, err := Containerd.GetContainerInfo(ctx, containerID, containerPid, dm.OwnerInfo)
if err != nil {
if strings.Contains(string(err.Error()), "pause container") {
if strings.Contains(string(err.Error()), "pause container") || strings.Contains(string(err.Error()), "moby") {
kg.Debug(err.Error())
return false
}
Expand Down
3 changes: 3 additions & 0 deletions deployments/helm/KubeArmorOperator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ spec:

# enabling NRI
enableNRI: [true|false] # DEFAULT - false
# Naming convention for kubearmor daemonset in case of NRI will be effective only when initally NRI is available & enabled.
# In case snitch service account token is already present before its deployment, the naming convention won't show NRI,
# it will be based on the runtime present. This happens because operator won't get KubearmorConfig event(initially).

# KubeArmor image and pull policy
kubearmorImage:
Expand Down

0 comments on commit 7f62178

Please sign in to comment.