Skip to content

Commit

Permalink
fix(kube-api-rewriter): add rewrite ownerReferences
Browse files Browse the repository at this point in the history
- add rewrite owner reference for kubevirt and cdi related resources

Signed-off-by: Dmitry Lopatin <[email protected]>
  • Loading branch information
LopatinDmitr committed May 22, 2024
1 parent 94fac98 commit 67f50ad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions images/kube-api-proxy/pkg/rewriter/target_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (tr *TargetRequest) ShouldRewriteRequest() bool {

if tr.originEndpoint.IsCore {
switch tr.originEndpoint.ResourceType {
case "pods":
case "pods", "configmaps", "secrets", "services":
return true
}
}
Expand All @@ -137,7 +137,14 @@ func (tr *TargetRequest) ShouldRewriteRequest() bool {
case "mutatingwebhookconfigurations",
"validatingwebhookconfigurations",
"clusterroles",
"roles":
"roles",
"rolebindings",
"clusterrolebindings",
"deployments",
"statefulsets",
"daemonsets",
"poddisruptionbudgets":

return true
}

Expand Down

0 comments on commit 67f50ad

Please sign in to comment.