add PodDisruptionBudget labels

This commit is contained in:
Seth Pollack
2018-06-05 22:02:24 -04:00
parent ea2d2c9db1
commit 69d816d5ab

View File

@@ -107,6 +107,11 @@ var defaultLabelsPathConfigs = []PathConfig{
Path: []string{"spec", "jobTemplate", "spec", "template", "metadata", "labels"},
CreateIfNotPresent: true,
},
{
GroupVersionKind: &schema.GroupVersionKind{Group: "policy", Kind: "PodDisruptionBudget"},
Path: []string{"spec", "selector", "matchLabels"},
CreateIfNotPresent: true,
},
}
// defaultLabelsPathConfigs is the default configuration for mutating annotations