Skip to content

Commit

Permalink
xds: cleanup bootstrap processing functionality (#7299)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars authored Jun 6, 2024
1 parent dbd24a9 commit dfcabe0
Show file tree
Hide file tree
Showing 39 changed files with 1,350 additions and 801 deletions.
1 change: 0 additions & 1 deletion internal/testutils/xds/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func Contents(opts Options) ([]byte, error) {
ClientDefaultListenerResourceNameTemplate: opts.ClientDefaultListenerResourceNameTemplate,
ServerListenerResourceNameTemplate: opts.ServerListenerResourceNameTemplate,
}
cfg.XdsServers[0].ServerFeatures = append(cfg.XdsServers[0].ServerFeatures, "xds_v3")
if opts.IgnoreResourceDeletion {
cfg.XdsServers[0].ServerFeatures = append(cfg.XdsServers[0].ServerFeatures, "ignore_resource_deletion")
}
Expand Down
2 changes: 1 addition & 1 deletion internal/testutils/xds/e2e/setup_management_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func SetupManagementServer(t *testing.T, opts ManagementServerOptions) (*Managem
}()

nodeID := uuid.New().String()
bootstrapContents, err := DefaultBootstrapContents(nodeID, server.Address)
bootstrapContents, err := DefaultBootstrapContents(nodeID, fmt.Sprintf("passthrough:///%s", server.Address))
if err != nil {
server.Stop()
t.Fatal(err)
Expand Down
Loading

0 comments on commit dfcabe0

Please sign in to comment.