Skip to content

Commit

Permalink
moved hack crd & set webhook path for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Oct 6, 2023
1 parent 282b28f commit 0397cf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,19 @@ var _ = BeforeSuite(func() {
// FIXME: till v1beta2 becomes the new storage version we will point to hack folder
// where v1beta2 is marked as the storage version
// filepath.Join("..", "config", "crd", "bases"),
filepath.Join("..", "config", "crd", "hack"),
filepath.Join("..", "hack"),
// We need to install the ConsolePlugin CRD to test setup of our Network Console Plugin
filepath.Join("..", "vendor", "github.com", "openshift", "api", "console", "v1alpha1"),
filepath.Join("..", "vendor", "github.com", "openshift", "api", "config", "v1"),
filepath.Join("..", "vendor", "github.com", "openshift", "api", "operator", "v1"),
filepath.Join("..", "test-assets"),
},
CleanUpAfterUse: true,
WebhookOptions: envtest.WebhookInstallOptions{
Paths: []string{
filepath.Join("..", "config", "webhook"),
},
},
},
ErrorIfCRDPathMissing: true,
}
Expand Down

0 comments on commit 0397cf9

Please sign in to comment.