From 69d816d5ab536be4acc4645378b5d30e7a064a7c Mon Sep 17 00:00:00 2001 From: Seth Pollack Date: Tue, 5 Jun 2018 22:02:24 -0400 Subject: [PATCH] add PodDisruptionBudget labels --- pkg/transformers/labelsandannotationsconfig.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/transformers/labelsandannotationsconfig.go b/pkg/transformers/labelsandannotationsconfig.go index d64d7e041..7156fee78 100644 --- a/pkg/transformers/labelsandannotationsconfig.go +++ b/pkg/transformers/labelsandannotationsconfig.go @@ -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