diff --git a/provider/provider.go b/provider/provider.go index 3c9b9d562..6a9c591e1 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -26,8 +26,12 @@ import ( "sigs.k8s.io/external-dns/plan" ) +// SoftError is an error, that provider will only log as error instead +// of fatal. It is meant for error propagation from providers to tell +// that this is a transient error. var SoftError error = errors.New("soft error") +// NewSoftError creates a SoftError from the given error func NewSoftError(err error) error { return errors.Join(SoftError, err) }