Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
venconn test: use the template CRD temporarily
  • Loading branch information
maelvls committed Aug 20, 2024
commit f1f175cc27f78ae8b74f3eaa9e77a02540fc0c46
5 changes: 4 additions & 1 deletion pkg/client/client_venconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ func fakeTPP(t testing.TB) (*httptest.Server, *x509.Certificate) {
func startEnvtest(t testing.TB) (_ *envtest.Environment, _ *rest.Config, kclient ctrlruntime.WithWatch) {
envtest := &envtest.Environment{
ErrorIfCRDPathMissing: true,
CRDDirectoryPaths: []string{"../../deploy/charts/venafi-kubernetes-agent/crd_bases/jetstack.io_venaficonnections.yaml"},
// TODO(mael): Once the automation around generating the CRD is in
// place, remember to update this path to
// deploy/charts/venafi-kubernetes-agent/crd_bases/jetstack.io_venaficonnections.yaml
CRDDirectoryPaths: []string{"../../deploy/charts/venafi-kubernetes-agent/templates/venafi-connection-crd.yaml"},
}
restconf, err := envtest.Start()
require.NoError(t, err)
Expand Down