Skip to content

Commit a2ec4a0

Browse files
committed
Update utils.go
1 parent b38eb5c commit a2ec4a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func createNetworkPolicyPeer(appName string, namespace string, networkPolicy com
581581
peer.NamespaceSelector.MatchLabels = getNamespaceLabels()
582582
}
583583

584-
if networkPolicy == nil || networkPolicy.GetFromLabels() == nil {
584+
if networkPolicy == nil || getLabels() == nil {
585585
peer.PodSelector.MatchLabels = map[string]string{
586586
"app.kubernetes.io/part-of": appName,
587587
}

0 commit comments

Comments
 (0)