func IsInvalid(err error) bool {
	return apierrors.IsInvalid(errors.Cause(err))
}
IsNotFound returns true if the given error is or is caused by a
kubernetes InvalidError,
package k8sutil
import (
	"github.com/arangodb/kube-arangodb/pkg/util/errors"
	apierrors "k8s.io/apimachinery/pkg/api/errors"
)
func IsAlreadyExists(err error) bool {
	return apierrors.IsAlreadyExists(errors.Cause(err))
}
func IsConflict(err error) bool {
	return apierrors.IsConflict(errors.Cause(err))
}
func IsNotFound(err error) bool {
	return apierrors.IsNotFound(errors.Cause(err))
}