Disable creation of PDB matchLabels

Allow for using matchExpressions on its own
This commit is contained in:
Maximilian Gaß
2018-08-24 13:49:57 +02:00
parent 77c07ba96e
commit 0833693372

View File

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