-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Don't advertise blocks with pending affinity #1712
Merged
caseydavenport
merged 2 commits into
projectcalico:master
from
caseydavenport:advertise-confirmed-blocks
Mar 6, 2018
Merged
Don't advertise blocks with pending affinity #1712
caseydavenport
merged 2 commits into
projectcalico:master
from
caseydavenport:advertise-confirmed-blocks
Mar 6, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
caseydavenport
added
the
release-note-required
Change has user-facing impact (no matter how small)
label
Mar 2, 2018
caseydavenport
force-pushed
the
advertise-confirmed-blocks
branch
from
March 2, 2018 17:42
a29511f
to
e9ddd11
Compare
caseydavenport
force-pushed
the
advertise-confirmed-blocks
branch
from
March 2, 2018 17:43
e9ddd11
to
ae79ed3
Compare
robbrockbank
reviewed
Mar 3, 2018
@@ -16,7 +16,19 @@ function calico_aggr () | |||
{{range ls "/"}} | |||
{{$parts := split . "-"}} | |||
{{$cidr := join $parts "/"}} | |||
if ( net = {{$cidr}} ) then { accept; } | |||
if ( net ~ {{$cidr}} ) then { reject; } | |||
{{$affinity := json (getv (printf "/%s" .))}} |
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.
can you change to use range gets
and json .Value
here, so something like:
{{range gets "/"}}
{{$parts := split .Key "-"}}
{{$cidr := join $parts "/"}}
{{$affinity := json .Value}}
@robbrockbank thanks, check out the new stuff :) |
robbrockbank
approved these changes
Mar 6, 2018
3 tasks
3 tasks
Revert for second broken commit here: #1752 |
caseydavenport
added
cherry-pick-completed
PR has been cherry-picked
and removed
cherry-pick-candidate
labels
Mar 16, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherry-pick-completed
PR has been cherry-picked
release-note-required
Change has user-facing impact (no matter how small)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In conjunction with projectcalico/libcalico-go#785, this change will make sure that any leaked block affinities won't get advertised by BIRD during the interim before they are cleaned up.
Todos
Release Note