Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make consul dataplane handle bootstrap param response for V2 resources #242

Merged
merged 7 commits into from
Sep 6, 2023

Conversation

ishustava
Copy link
Contributor

  • Handle bootstrap_config param
  • Use new request and response params
  • Make flags/config more generic so that they can accomodate services or workloads and deprecate old flags/config.
    Part of NET-5221

@ishustava ishustava marked this pull request as ready for review August 17, 2023 23:08
@ishustava ishustava requested a review from a team as a code owner August 17, 2023 23:08
@ishustava ishustava requested review from mkeeler and DanStough August 17, 2023 23:08
go.mod Outdated Show resolved Hide resolved
Copy link
Contributor

@DanStough DanStough left a comment

Choose a reason for hiding this comment

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

See the question about whether or not the tenancy information is required now.

This is probably a future concern, but I imagined in a world or migration where V1 and V2 run in parallel, dataplane would need some way to indicate it wants a V1 or V2 style response if it's using the same, backwards-compatible endpoint. Is that something we should plan for?

cmd/consul-dataplane/main.go Show resolved Hide resolved
pkg/consuldp/consul_dataplane.go Outdated Show resolved Hide resolved
pkg/consuldp/consul_dataplane.go Outdated Show resolved Hide resolved
cmd/consul-dataplane/config_test.go Show resolved Hide resolved
pkg/consuldp/bootstrap.go Outdated Show resolved Hide resolved
Comment on lines +90 to +92
NodeName *string `json:"nodeName,omitempty"`
NodeID *string `json:"nodeID,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Are these needed with v2. All workload ids must be unique within a tenant so it seems like we may not need these any longer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are not needed with V2, however, these flags can be used for both v1 and v2. My intention is to deprecate old flags and to have one set of generically named flags that could be used against either API.

cmd/consul-dataplane/main.go Show resolved Hide resolved
@ishustava ishustava force-pushed the ishustava/get-bootstrap-params-v2 branch from 78108a8 to 8b3322b Compare September 1, 2023 23:43
* Handle bootstrap_config param
* Use new request and response params
* Make flags/config more generic so that they can accomodate services or workloads
  and deprecate old flags/config.
@ishustava ishustava force-pushed the ishustava/get-bootstrap-params-v2 branch from 8b3322b to 1e3c558 Compare September 1, 2023 23:55
Copy link
Contributor

@DanStough DanStough left a comment

Choose a reason for hiding this comment

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

🎉

@ishustava ishustava requested a review from DanStough September 5, 2023 18:15
Copy link
Contributor

@DanStough DanStough left a comment

Choose a reason for hiding this comment

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

2 x 🎉

…t exist and causes build errors. This points at the current HEAD of ishustava/v2-dp-bootstrap-params
@ishustava ishustava merged commit 7e075dc into main Sep 6, 2023
32 checks passed
@ishustava ishustava deleted the ishustava/get-bootstrap-params-v2 branch September 6, 2023 22:53
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.

5 participants