-
Notifications
You must be signed in to change notification settings - Fork 9k
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
update Consul vendor code so that catalog.ServiceMultipleTags can be #5151
Conversation
Hi @cstyan thanks for letting me know about this PR. I don't remember working on consul SD and If any of my changes caused a bug, I apologize. Could you let me know where exactly I made changes? In any case, always happy to help review ^__^ |
🤦♂️ my bad @tariq1890, wrong person cc: @iksaif |
Good to know that consul now supports this :). Do we really want to break compatibility with the old config here? |
I agree with @iksaif that although this SD mechanism isn't covered by the stability guarantees, it would be nicer to not break users immediately. Maybe support both |
I'd prefer to avoid cruft building up in the code. This is a fairly new feature, and should only be in use by advanced users. |
@iksaif @simonpasquier good point @brian-brazil it's unclear whether you're saying we shouldn't support searching for services with multiple tags, or just to not include |
I'm saying don't include both. |
Any opinions on how to proceed? I don't see a way to not break peoples old config for this change. We can't marshal a single string into an array of strings with go-yaml. |
I'd suggest breaking it, as new features come along in SDs I'm not sure we should be spending too much effort on avoiding breakage. Particularly for more advanced features. |
Fine by me. It's a pretty minor change required in users config files anyways. |
Do we want to move ahead with these changes as is? |
👍 as @brian-brazil is ok with the breaking change. |
okay, seems no one is opposed |
@brian-brazil bump |
@brian-brazil @iksaif updated, a service must now contain all tags we're watching to be added to watched services. cc: @ashepelev |
👍 You've conflicts |
used Signed-off-by: Callum Styan <[email protected]>
watching Signed-off-by: Callum Styan <[email protected]>
Signed-off-by: Callum Styan <[email protected]>
Signed-off-by: Callum Styan <[email protected]>
hardcoding a bunch of if statements Signed-off-by: Callum Styan <[email protected]>
@brian-brazil thanks, fixed. I really need to check if there's a way to have GH notify me when there's a merge conflict. |
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. Re conflict notifications, I don't know of something like this but Prow (which we already use for prombench) has a needs-rebase
plugin that puts a label on PRs with conflicts. This won't get you notified though.
@brian-brazil PTAL :) |
Thanks! |
Fixes #4786
cc: @tariq1890 you've touched this code recently also @simonpasquier
Signed-off-by: Callum Styan [email protected]