Skip to content

pkg/endpoint: fix global k8sServerVer variable assignment#5926

Merged
tgraf merged 1 commit intomasterfrom
pr/fix-nil-pointer
Oct 18, 2018
Merged

pkg/endpoint: fix global k8sServerVer variable assignment#5926
tgraf merged 1 commit intomasterfrom
pr/fix-nil-pointer

Conversation

@aanm
Copy link
Copy Markdown
Member

@aanm aanm commented Oct 17, 2018

As the variable is being globally assigned for all endpoints, if one
endpoints re-sets it to nil it can cause a nil pointer exception during
a controller execution causing the cilium-agent to crash.

Fixes: a8a81b3 ("pkg/endpoint: add UpdateStatus functionality for CEP")
Signed-off-by: André Martins andre@cilium.io

Related with #5913

Check for k8s server version for each endpoint

This change is Reviewable

As the variable is being globally assigned for all endpoints, if one
endpoints re-sets it to nil it can cause a nil pointer exception during
a controller execution causing the cilium-agent to crash.

Fixes: a8a81b3 ("pkg/endpoint: add UpdateStatus functionality for CEP")
Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm added kind/bug This is a bug in the Cilium logic. pending-review release-note/bug This PR fixes an issue in a previous release of Cilium. labels Oct 17, 2018
@aanm aanm requested a review from a team as a code owner October 17, 2018 22:20
@aanm
Copy link
Copy Markdown
Member Author

aanm commented Oct 17, 2018

test-me-please

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants