Skip to content

Commit 288b041

Browse files
authored
Merge pull request #706 from hasheddan/setcrds
✨ envtest: surface merged crds
2 parents ce6bd39 + 8929899 commit 288b041

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/envtest/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ func (te *Environment) Start() (*rest.Config, error) {
240240
log.V(1).Info("installing CRDs")
241241
te.CRDInstallOptions.CRDs = mergeCRDs(te.CRDInstallOptions.CRDs, te.CRDs)
242242
te.CRDInstallOptions.Paths = mergePaths(te.CRDInstallOptions.Paths, te.CRDDirectoryPaths)
243-
_, err := InstallCRDs(te.Config, te.CRDInstallOptions)
243+
crds, err := InstallCRDs(te.Config, te.CRDInstallOptions)
244+
te.CRDs = crds
244245
return te.Config, err
245246
}
246247

0 commit comments

Comments
 (0)