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

daemon/cmd: update visibility policy after endpoint queue is created #10608

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

aanm
Copy link
Member

@aanm aanm commented Mar 17, 2020

As the endpoint queue is created when adding the endpoint to the
endpoint manager we should only update the visibility policy after the
endpoint is added to the endpoint manager to avoid seeing error logs
every time a new endpoint is created.

Fixes: acbf880 ("pkg/endpoint: decrease direct iteractions with k8s-apiserver")
Signed-off-by: André Martins andre@cilium.io

Fixes #10543

Do not throw errors for each new endpoint that is created

This change is Reviewable

@aanm aanm added kind/bug This is a bug in the Cilium logic. pending-review kind/regression This functionality worked fine before, but was broken in a newer release of Cilium. labels Mar 17, 2020
@aanm aanm requested a review from a team as a code owner March 17, 2020 13:44
@maintainer-s-little-helper
Copy link

Release note label not set, please set the appropriate release note.

4 similar comments
@maintainer-s-little-helper
Copy link

Release note label not set, please set the appropriate release note.

@maintainer-s-little-helper
Copy link

Release note label not set, please set the appropriate release note.

@maintainer-s-little-helper
Copy link

Release note label not set, please set the appropriate release note.

@maintainer-s-little-helper
Copy link

Release note label not set, please set the appropriate release note.

@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Mar 17, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.7.2 Mar 17, 2020
@aanm aanm added the release-note/bug This PR fixes an issue in a previous release of Cilium. label Mar 17, 2020
@aanm
Copy link
Member Author

aanm commented Mar 17, 2020

test-me-please previous flake https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/17976/

@coveralls
Copy link

coveralls commented Mar 17, 2020

Coverage Status

Coverage decreased (-0.03%) to 45.575% when pulling ac979a0 on pr/fix-10543 into 8462fe6 on master.

Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

Just one question below on potentially queueing multiple regenerations. I'm concerned this may affect all endpoints, not just endpoints with the annotations.

EDIT: Github did weird things. I mean the above comment:
#10608 (review)

daemon/cmd/endpoint.go Show resolved Hide resolved
@aanm
Copy link
Member Author

aanm commented Mar 17, 2020

@aanm
Copy link
Member Author

aanm commented Mar 18, 2020

@aanm
Copy link
Member Author

aanm commented Mar 18, 2020

test-me-please

As the endpoint queue is created when adding the endpoint to the
endpoint manager we should only update the visibility policy after the
endpoint is added to the endpoint manager to avoid seeing error logs
every time a new endpoint is created.

Fixes: acbf880 ("pkg/endpoint: decrease direct iteractions with k8s-apiserver")
Signed-off-by: André Martins <andre@cilium.io>
@aanm
Copy link
Member Author

aanm commented Mar 21, 2020

test-me-please

@aanm aanm merged commit 28b0fba into master Mar 23, 2020
1.8.0 automation moved this from In progress to Merged Mar 23, 2020
@aanm aanm deleted the pr/fix-10543 branch March 23, 2020 11:05
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.7 in 1.7.2 Mar 30, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.7 in 1.7.2 Mar 30, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.7 to Backport done to v1.7 in 1.7.2 Apr 1, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.7 to Backport done to v1.7 in 1.7.2 Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is a bug in the Cilium logic. kind/regression This functionality worked fine before, but was broken in a newer release of Cilium. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.7.2
Backport done to v1.7
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

Cilium errors with "Unable to enqueue endpoint policy visibility event" on every endpoint create
4 participants