This adds two functions to internal/controller/runtime to reduce the imports in the pgBackRest controller and adds a linter to keep github.com/pkg/errors out of tests.
This also uses golang.org/x/tools/go/packages to load VolumeSnapshot CRDs from the (already downloaded) client Go module.
This adds two functions to
internal/controller/runtime
to reduce the imports in the pgBackRest controller and adds a linter to keepgithub.com/pkg/errors
out of tests.This also uses
golang.org/x/tools/go/packages
to load VolumeSnapshot CRDs from the (already downloaded) client Go module.