talos/pkg/kubernetes/errors.go
Andrey Smirnov 230e46e567
refactor: extract parts of kubernetes libraries
The shared code is going out to the
github.com/siderolabs/go-kubernetes library.

The code will be used in Talos and other projects using same features.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2023-02-22 14:56:49 +04:00

15 lines
443 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package kubernetes
import (
"github.com/siderolabs/go-kubernetes/kubernetes"
)
// IsRetryableError returns true if this Kubernetes API should be retried.
func IsRetryableError(err error) bool {
return kubernetes.IsRetryableError(err)
}