Skip to content

[test] convert bootstrap test configs to v2#7065

Merged
mattklein123 merged 13 commits intoenvoyproxy:masterfrom
derekargueta:dereka/delete-parse-bootstrap-json
May 26, 2019
Merged

[test] convert bootstrap test configs to v2#7065
mattklein123 merged 13 commits intoenvoyproxy:masterfrom
derekargueta:dereka/delete-parse-bootstrap-json

Conversation

@derekargueta
Copy link
Member

Description: Converts test configs for Bootstrap messages to v2. This also deletes code that depended on v1 Bootstrap translation. Bootstrap is a pretty fundamental config type, so this opens the door to fully cleaning out various other v1-v2 translation functions that were called by translateBootstrap such as translateAddress and translateCluster. For issue #6362.
Risk Level: Low
Testing: Included
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
@derekargueta
Copy link
Member Author

hmm, not sure about the doc failure since this doesn't touch docs, there's 1 warning in the output:

checking consistency... /source/generated/rst/configuration/best_practices/edge.rst: WARNING: document isn't included in any toctree
done

Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
connect_timeout: 0.250s
type: static
lb_policy: round_robin
hosts:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we directly convert hosts to load_assignment here? (since hosts is deprecated).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I did this for most cases. There's a few spots where v1-consuming functions are still used (i.e. configDump used in ClusterManagerImplTest.InitializeOrder) but I'd prefer to handle those in a follow-up PR given the LoC already in this PR.

Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
@derekargueta
Copy link
Member Author

Thanks @dio for the doc fix!

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So amazing. Thank you!!! Now if you are up for it, let's make the spreadsheet and split this up. :)

@mattklein123 mattklein123 merged commit 8e2a1f4 into envoyproxy:master May 26, 2019
@derekargueta derekargueta deleted the dereka/delete-parse-bootstrap-json branch June 28, 2019 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants