Before call harden() function with rule type, check rules has cluster_wide and namespace_based config. Now hardeneks is not working with only cluster_wide config or only namespace_based config.
Linux capabilities rules checks "container.security_context.capabilities.add" exist before check capability list.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.