Skip to content

Commit e6e1b50

Browse files
kabicinkabicin
authored andcommitted
Update utils.go
1 parent c11cd05 commit e6e1b50

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
@@ -591,7 +591,7 @@ func createNetworkPolicyPeer(appName string, namespace string, networkPolicy com
591591
peer.NamespaceSelector.MatchLabels = getNamespaceLabels()
592592
}
593593

594-
if networkPolicy == nil || networkPolicy.GetFromLabels() == nil {
594+
if networkPolicy == nil || getLabels() == nil {
595595
peer.PodSelector.MatchLabels = map[string]string{
596596
"app.kubernetes.io/part-of": appName,
597597
}

0 commit comments

Comments
 (0)