Skip to content

Commit 9986b65

Browse files
committed
Disable creation of NetworkPolicy podSelector.matchLabels
1 parent 94dab9d commit 9986b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/transformers/labelsandannotationsconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ var defaultLabelsPathConfigs = []PathConfig{
162162
{
163163
GroupVersionKind: &schema.GroupVersionKind{Group: "networking.k8s.io", Kind: "NetworkPolicy"},
164164
Path: []string{"spec", "podSelector", "matchLabels"},
165-
CreateIfNotPresent: true,
165+
CreateIfNotPresent: false,
166166
},
167167
{
168168
GroupVersionKind: &schema.GroupVersionKind{Group: "networking.k8s.io", Kind: "NetworkPolicy"},

0 commit comments

Comments
 (0)