Skip to content

Commit

Permalink
++ fix error "failed to list *v1.PodDisruptionBudget: json: cannot un…
Browse files Browse the repository at this point in the history
…marshal string into Go struct field LabelSelector.items.spec.selector.matchLabels of type map[string]string"

Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
  • Loading branch information
diafour committed Jun 26, 2024
1 parent 206f47c commit 943dba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/kube-api-proxy/pkg/rewriter/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ const (

func RewritePDBOrList(rules *RewriteRules, obj []byte, action Action) ([]byte, error) {
return RewriteResourceOrList(obj, PodDisruptionBudgetListKind, func(singleObj []byte) ([]byte, error) {
return RewriteLabelsMap(rules, singleObj, "spec.selector", action)
return RewriteLabelsMap(rules, singleObj, "spec.selector.matchLabels", action)
})
}

0 comments on commit 943dba6

Please sign in to comment.