feat(dev): create initial alias targets for boundary dev (#4433)

* feat(dev): create initial alias targets for boundary dev
This commit is contained in:
Irena Rindos authored and Todd committed 2024-02-29 15:52:27 -08:00
1 parent 48d958e395
commit e80e9a6da5
6 files changed
+239 -17

No files matched your search

+5
View File
@@ -190,6 +190,11 @@ func (b *Server) CreateDevDatabase(ctx context.Context, opt ...Option) error {
if _, err := b.CreateInitialTargetWithHostSources(ctx); err != nil {
return err
}
if !b.SkipAliasTargetCreation {
if err := b.CreateInitialTargetsWithAlias(ctx); err != nil {
return err
}
}
// now that we have passed all the error cases, reset c to be a noop so the
// defer doesn't do anything.