diff --git a/images/kube-api-proxy/pkg/rewriter/target_request.go b/images/kube-api-proxy/pkg/rewriter/target_request.go index 4a7606f5f..c9ad3ae1f 100644 --- a/images/kube-api-proxy/pkg/rewriter/target_request.go +++ b/images/kube-api-proxy/pkg/rewriter/target_request.go @@ -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 } } @@ -137,7 +137,14 @@ func (tr *TargetRequest) ShouldRewriteRequest() bool { case "mutatingwebhookconfigurations", "validatingwebhookconfigurations", "clusterroles", - "roles": + "roles", + "rolebindings", + "clusterrolebindings", + "deployments", + "statefulsets", + "daemonsets", + "poddisruptionbudgets": + return true }