Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube-bench-adapter job fails with warning re propagationPolicy #5

Open
funkypenguin opened this issue Mar 30, 2023 · 0 comments
Open

Comments

@funkypenguin
Copy link

When testing the helm chart in an unsecured cluster (see #4), I get a successful kube-bench job run, but kube-bench-adapter fails with :

root@cn1:~# k logs -n kube-bench test4-l2zf6
Found (1) pods
pod (kube-bench-wwrc5) - "Pending"
Found (1) pods
pod (kube-bench-wwrc5) - "Running"
Found (1) pods
pod (kube-bench-wwrc5) - "Running"
Found (1) pods
pod (kube-bench-wwrc5) - "Succeeded"
W0330 00:44:29.927886       1 warnings.go:70] child pods are preserved by default when jobs are deleted; set propagationPolicy=Background to remove them or set propagationPolicy=Orphan to suppress this warning
failed to run job of kube-bench: invalid character 'W' looking for beginning of value
(failed reverse-i-search)`ge tjobs': k ^Ct pods -n kube-bench
root@cn1:~#

I'm on Kubernetes 1.25 - is there anything to be done to remove the warning above, and (hopefully) successfully complete the job?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant