e2e: try to load the Make-built crds before the Bazel-built crds

Since bazel-bin systematically exists, the Make-based CRDs were never
picked up, since the bazel-bin folder gets recreated on every invocation
of Bazel.

Signed-off-by: Maël Valais <mael@vls.dev>
This commit is contained in:
Maël Valais 2022-03-11 19:03:35 +00:00
parent 8fd19044f2
commit 05f3cf51f1

View File

@ -77,12 +77,12 @@ func CRDDirectory() (string, error) {
var dir string
var err error
dir, err = bazelCRDDirectory()
dir, err = makefileCRDDirectory()
if err == nil {
return dir, nil
}
dir, err = makefileCRDDirectory()
dir, err = bazelCRDDirectory()
if err == nil {
return dir, nil
}