mirror of
https://github.com/outbackdingo/kamaji.git
synced 2026-01-27 18:19:25 +00:00
20 lines
404 B
Go
20 lines
404 B
Go
// Copyright 2022 Clastix Labs
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package errors
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
func ShouldReconcileErrorBeIgnored(err error) bool {
|
|
switch {
|
|
case errors.As(err, &NonExposedLoadBalancerError{}):
|
|
return true
|
|
case errors.As(err, &MissingValidIPError{}):
|
|
return true
|
|
case errors.As(err, &MigrationInProcessError{}):
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|