Disable creation of NetworkPolicy podSelector.matchLabels

This commit is contained in:
Maximilian Gaß
2018-07-18 14:01:22 +02:00
parent 94dab9ddc4
commit 9986b65326

View File

@@ -162,7 +162,7 @@ var defaultLabelsPathConfigs = []PathConfig{
{
GroupVersionKind: &schema.GroupVersionKind{Group: "networking.k8s.io", Kind: "NetworkPolicy"},
Path: []string{"spec", "podSelector", "matchLabels"},
CreateIfNotPresent: true,
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{Group: "networking.k8s.io", Kind: "NetworkPolicy"},