Skip to content

Commit 0833693

Browse files
committed
Disable creation of PDB matchLabels
Allow for using matchExpressions on its own
1 parent 77c07ba commit 0833693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/transformers/labelsandannotationsconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var defaultLabelsPathConfigs = []PathConfig{
157157
{
158158
GroupVersionKind: &schema.GroupVersionKind{Group: "policy", Kind: "PodDisruptionBudget"},
159159
Path: []string{"spec", "selector", "matchLabels"},
160-
CreateIfNotPresent: true,
160+
CreateIfNotPresent: false,
161161
},
162162
{
163163
GroupVersionKind: &schema.GroupVersionKind{Group: "networking.k8s.io", Kind: "NetworkPolicy"},

0 commit comments

Comments
 (0)