Merge pull request #137714 from natasha41575/allow_nri_to_block_resize

[InPlacePodVerticalScaling] Make the hardcoded 'unimplemented' message from CRI a const
This commit is contained in:
Kubernetes Prow Robot
2026-03-14 12:11:34 +05:30
committed by GitHub

View File

@@ -440,7 +440,7 @@ func (m *kubeGenericRuntimeManager) updatePodSandboxResources(ctx context.Contex
// an error with code 'Unimplemented'.
// This is being fixed in https://github.com/containerd/containerd/pull/13023, so this hardcoded
// string check can be removed once containerd 2.2 is no longer supported.
unimplementedMsg := "not implemented"
const unimplementedMsg = "not implemented"
if stat.Code() == codes.Unimplemented || (stat.Code() == codes.Unknown && strings.Contains(stat.Message(), unimplementedMsg)) {
logger.V(3).Info("updatePodSandboxResources failed: unimplemented; this call is best-effort: proceeding with resize", "sandboxID", sandboxID)
return nil