Merge pull request #58 from sethpollack/labels

add PodDisruptionBudget labels
This commit is contained in:
Jeff Regan
2018-06-06 14:01:11 -07:00
committed by GitHub

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