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

pkg/k8s: set user-agent in k8s client #24275

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

aanm
Copy link
Member

@aanm aanm commented Mar 9, 2023

The user agent for the k8s client was never set and it was defaulting to some non-specific which would make it difficult to distinguish the Cilium requests in the kube-apiserver logs.

This looks a regression introduced in fc41aeb and, similarly to the user-agent, we should make sure we are not overwriting any default QPS nor Burt values with '0'.

Fixes: fc41aeb ("k8s: Add k8s-client cell")

Set user-agent for k8s client with Cilium's version

The user agent for the k8s client was never set and it was defaulting
to some non-specific which would make it difficult to distinguish the Cilium
requests in the kube-apiserver logs.

This looks a regression introduced in fc41aeb and, similarly to the
user-agent, we should make sure we are not overwriting any default QPS
nor Burt values with '0'.

Fixes: fc41aeb ("k8s: Add k8s-client cell")
Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm added sig/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers. release-note/bug This PR fixes an issue in a previous release of Cilium. kind/regression This functionality worked fine before, but was broken in a newer release of Cilium. needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Mar 9, 2023
@aanm aanm requested a review from a team as a code owner March 9, 2023 23:44
@aanm aanm requested a review from tommyp1ckles March 9, 2023 23:44
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.13.1 Mar 9, 2023
@aanm
Copy link
Member Author

aanm commented Mar 9, 2023

/test

@christarazi christarazi merged commit f8ed62c into cilium:master Mar 10, 2023
@nebril nebril added this to Needs backport from master in 1.13.2 Mar 15, 2023
@nebril nebril removed this from Needs backport from master in 1.13.1 Mar 15, 2023
@NikAleksandrov NikAleksandrov mentioned this pull request Mar 23, 2023
29 tasks
@NikAleksandrov NikAleksandrov added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Mar 23, 2023
@jibi jibi added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. labels Apr 7, 2023
@gentoo-root gentoo-root moved this from Needs backport from master to Backport done to v1.13 in 1.13.2 Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. 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. sig/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers.
Projects
No open projects
1.13.2
Backport done to v1.13
Development

Successfully merging this pull request may close these issues.

None yet

5 participants