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
consul: support admin partitions #19665
Conversation
Add support for Consul Enterprise admin partitions. We added fingerprinting in #19485. This PR adds a `consul.partition` field. The expectation is that most users will create a mapping of Nomad node pool to Consul admin partition. But we'll also create an implicit constraint for the fingerprinted value. Fixes: #13139
2a8ec44
to
0716ed7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An e2e test for this might be neat, and I think there's a little unit test gap (unless I'm missing something), but otherwise LGTM!
Yeah, that's somewhat complicated in that we can only support that in Consul ENT, which we don't have for all tests. But adding the partition where it's available would be nice. Will probably do that in a follow-up PR once I've got the ENT PR done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would find a way to move the empty verifications into a function, to make the code cleaner, but that is nitpicking. It looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; exceptionally minor inline comment.
Add support for Consul Enterprise admin partitions. We added fingerprinting in hashicorp#19485. This PR adds a `consul.partition` field. The expectation is that most users will create a mapping of Nomad node pool to Consul admin partition. But we'll also create an implicit constraint for the fingerprinted value. Fixes: hashicorp#13139
Add support for Consul Enterprise admin partitions. We added fingerprinting in hashicorp#19485. This PR adds a `consul.partition` field. The expectation is that most users will create a mapping of Nomad node pool to Consul admin partition. But we'll also create an implicit constraint for the fingerprinted value. Fixes: hashicorp#13139
Add support for Consul Enterprise admin partitions. We added fingerprinting in #19485. This PR adds a
consul.partition
field. The expectation is that most users will create a mapping of Nomad node pool to Consul admin partition. But we'll also create an implicit constraint for the fingerprinted value.Fixes: #13139