You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for resize subresource in Kubernetes C# client #1641
Please add support for the resize subresource in the Kubernetes C# client to enable in-place Pod resource updates (CPU/memory) without requiring a restart.
Background
Kubernetes v1.33 introduced the resize subresource (beta) to allow in-place vertical scaling of Pods. This is accessible via:
bash
kubectl edit pod --subresource=resize
However, the C# client currently does not expose this subresource, making it difficult to automate in-place scaling from .NET applications.
Use Case
We want to programmatically resize Pods without restarting them, using the C# client. This is especially useful for performance-sensitive workloads where downtime is not acceptable.
I confirmed that the v1.33+ OpenAPI spec already defines the resize sub‑resource in api__v1_openapi.json:
"/api/v1/namespaces/{namespace}/pods/{name}/resize": {
"patch": {
"description": "partially update resize of the specified Pod",
"operationId": "patchCoreV1NamespacedPodResize",
…
}
}
This means no changes to the spec are needed, once the C# client is regenerated against this spec, it will automatically include a PatchNamespacedPodResizeAsync (or the PatchNamespacedPodAsync(..., subresource: "resize") overload).
Do you have an estimated timeline for when the client will be regenerated and a new release published with this method?
Activity
brendandburns commentedon Jul 29, 2025
I think we just need to regenerate the client for 1.33 and we should pick this up (unless somehow it is missing from the api specification)
tg123 commentedon Jul 29, 2025
let me check
aliridahussein commentedon Jul 30, 2025
Hi all,
I confirmed that the v1.33+ OpenAPI spec already defines the resize sub‑resource in api__v1_openapi.json:
"/api/v1/namespaces/{namespace}/pods/{name}/resize": {
"patch": {
"description": "partially update resize of the specified Pod",
"operationId": "patchCoreV1NamespacedPodResize",
…
}
}
This means no changes to the spec are needed, once the C# client is regenerated against this spec, it will automatically include a PatchNamespacedPodResizeAsync (or the PatchNamespacedPodAsync(..., subresource: "resize") overload).
Do you have an estimated timeline for when the client will be regenerated and a new release published with this method?
Thanks!
tg123 commentedon Sep 1, 2025
just confirmed, those api are already generated
add example of resize