-
Notifications
You must be signed in to change notification settings - Fork 23
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 k8s.io/client-go to v0.29.5 #93
Update k8s.io/client-go to v0.29.5 #93
Conversation
Not using latest v0.30, as it requires go 1.22.
The two places that would use this are elastic-agent and beats, neither of which have any direct uses of ~/go/src/github.com/elastic/beats main
❯ rg 'PodSecurityPolicy' -l
metricbeat/module/kubernetes/apiserver/_meta/test/metrics.2.0
metricbeat/module/kubernetes/apiserver/_meta/test/metrics.2.0.expected
metricbeat/module/kubernetes/apiserver/_meta/testdata/docs.plain
metricbeat/module/kubernetes/apiserver/_meta/testdata/docs.plain-expected.json ~/go/src/github.com/elastic/elastic-agent main
❯ rg 'PodSecurityPolicy' -l
~/go/src/github.com/elastic/elastic-agent main |
Actually doing a broader search directly in GitHub shows me that Cloudbeat is using https://github.com/search?q=repo%3Aelastic%2Fcloudbeat%20PodSecurityPolicy&type=code The two references are: Given it is deprecated upstream I don't think they have a choice but to remove the references eventually but I'm not sure if this breaks anything for them now. FYI @oren-zohar |
Thank you @cmacknz for finding these references. It looks like the Cloud beat indeed is referencing the PodSecurityPolicy type. I cannot find the information on which Kubernetes versions the Cloud beat supports. I don't think this is a blocker for this change in |
💚 Build Succeeded
History
|
This is a proposal to update the
client-go
dependency to a more recent version.This is a breaking change, as it removes support for
PodSecurityPolicy
, which has been removed since Kubernetes v1.25.I have upgraded to
v0.29
as this is the latest version that supports Go 1.21 -client-go@v0.30
requires Go 1.22.We can also upgrade to a version lower than v0.29 if that is needed by any of the downstream libraries depending on this package.