mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user