Skip to content

Commit f1f175c

Browse files
committed
venconn test: use the template CRD temporarily
1 parent 10126b4 commit f1f175c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/client/client_venconn_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ func fakeTPP(t testing.TB) (*httptest.Server, *x509.Certificate) {
268268
func startEnvtest(t testing.TB) (_ *envtest.Environment, _ *rest.Config, kclient ctrlruntime.WithWatch) {
269269
envtest := &envtest.Environment{
270270
ErrorIfCRDPathMissing: true,
271-
CRDDirectoryPaths: []string{"../../deploy/charts/venafi-kubernetes-agent/crd_bases/jetstack.io_venaficonnections.yaml"},
271+
// TODO(mael): Once the automation around generating the CRD is in
272+
// place, remember to update this path to
273+
// deploy/charts/venafi-kubernetes-agent/crd_bases/jetstack.io_venaficonnections.yaml
274+
CRDDirectoryPaths: []string{"../../deploy/charts/venafi-kubernetes-agent/templates/venafi-connection-crd.yaml"},
272275
}
273276
restconf, err := envtest.Start()
274277
require.NoError(t, err)

0 commit comments

Comments
 (0)