-
Notifications
You must be signed in to change notification settings - Fork 326
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
Add support for Admin Partitions to endpoints controller #717
Conversation
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.
serviceName = strings.TrimSpace(pieces[0]) | ||
if len(pieces) > 1 { | ||
if r.EnableConsulNamespaces || r.EnableConsulPartitions { | ||
pieces := strings.SplitN(parts[0], ".", 3) |
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.
Is this the plan for Consul DNS too? svc.ns.part
?
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.
yup! based on conversations with @freddygv Consul DNS will become svc.ns.part
consulNamespacesEnabled: true, | ||
consulPartitionsEnabled: true, |
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.
Q: Is partitions with namespaces disabled supported?
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.
🤔 it should be. ill write a test for it. Everything should land in the default namespace in that case.
Should we error if the namespace provided is non-default?
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.
No I think it's fine as is. Just might be weird for folks to have to use svc.ns.part
if they don't have namespaces enabled but I think that's fine.
27bbecc
to
6c3a587
Compare
This reverts commit 8073aee.
Changes proposed in this PR:
x.y.z
where x is the service name, y is the namespace and z is the admin partition. if there are only 2 pieces, service name and namespace are assumed. if there is only 1 piece, service name is assumed.How I've tested this PR:
How I expect reviewers to test this PR:
Checklist: