Jobs do not create a selector if not already present

This commit is contained in:
Ryan Morehart
2018-06-18 17:09:23 -06:00
parent b7be630924
commit 398ceb0a92
2 changed files with 114 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ var defaultLabelsPathConfigs = []PathConfig{
{
GroupVersionKind: &schema.GroupVersionKind{Group: "batch", Kind: "Job"},
Path: []string{"spec", "selector", "matchLabels"},
CreateIfNotPresent: true,
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{Group: "batch", Kind: "Job"},