mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-03 00:08:08 +00:00
feat: anoymization based on pr feedback
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ func (NetworkPolicyAnalyzer) Analyze(a common.Analyzer) ([]common.Result, error)
|
|||||||
// Check if policy allows traffic to all pods in the namespace
|
// Check if policy allows traffic to all pods in the namespace
|
||||||
if len(policy.Spec.PodSelector.MatchLabels) == 0 {
|
if len(policy.Spec.PodSelector.MatchLabels) == 0 {
|
||||||
failures = append(failures, common.Failure{
|
failures = append(failures, common.Failure{
|
||||||
Text: fmt.Sprintf("Network policy allows traffic to all pods in the namespace: %s", policy.Name),
|
Text: fmt.Sprintf("Network policy allows traffic to all pods: %s", policy.Name),
|
||||||
Sensitive: []common.Sensitive{
|
Sensitive: []common.Sensitive{
|
||||||
{
|
{
|
||||||
Unmasked: policy.Name,
|
Unmasked: policy.Name,
|
||||||
|
Reference in New Issue
Block a user