Merge pull request #176 from babiel/do-not-create-networkpolicy-matchlabels

Disable NetworkPolicy podSelector.matchLabels CreateIfNotPresent
This commit is contained in:
Jeff Regan
2018-07-19 15:51:13 -07:00
committed by GitHub
4 changed files with 66 additions and 1 deletions

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"},