refactor: avoid os.Is.. in favor of errors.Is
What does this MR do?
Replace os.Is.. with errors.Is counterpart.
See https://github.com/golang/go/issues/41122 and https://github.com/golang/go/commit/b641f0dcf48aa748aa8d3db1e332b77044b48e59
TODO
-
I added the Changelog
trailer (e.g.Changelog: feature
) to the commits that need to be included in the changelog -
I added unit tests or they are not required -
I added acceptance tests or they are not required -
I added documentation (or it's not required) -
I followed code review guidelines -
I followed Go Style guidelines