-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Skip metallb PodSecurityPolicy object for kubernetes 1.25+ #14903
Conversation
Welcome @Jancis! |
Hi @Jancis. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can one of the admins verify this patch? |
Hi @Jancis, can you follow the instructions in #14903 (comment) to sign the CLA so we can continue with the PR, thanks |
@spowelljr I signed it, anything else I can do? |
I'm working on the PR that enables minikube to support k8s v1.25 (#14848).. Once that's merged you can rebase this PR on master and then test it out to make sure if works. |
/ok-to-test |
@Jancis I need to leverage your logic exposing the Kubernetes version for the Gvisor addon in regard to |
kvm2 driver with docker runtime
Times for minikube start: 60.0s 55.5s 56.2s 56.3s 55.4s Times for minikube ingress: 25.1s 25.1s 24.6s 29.6s 29.6s docker driver with docker runtime
Times for minikube (PR 14903) start: 29.1s 26.7s 28.2s 31.4s 27.8s Times for minikube ingress: 20.4s 23.4s 22.9s 22.0s 23.9s docker driver with containerd runtime
Times for minikube start: 23.2s 23.3s 23.8s 23.5s 23.7s Times for minikube ingress: 26.5s 27.4s 27.4s 26.9s 26.9s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
Sure @spowelljr , btw I can convert this one to implement |
If you could convert it to I don't believe we have any MetalLB integration tests so that's likely why you're not seeing failures related to MetalLB in the test outputs. We want to release minikube v1.27 this week, and we're just waiting for my k8s v1.25 PR to be merged before releasing, so if you could implement the above at your earliest convenience that would be awesome, thanks! |
We want to go for release today so I pushed the talked about changes to this PR |
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.
Great way to improve security with backwards compatibility.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Jancis, klaases The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
kvm2 driver with docker runtime
Times for minikube start: 54.1s 56.1s 56.8s 57.8s 55.3s Times for minikube ingress: 29.1s 28.7s 25.1s 28.6s 30.6s docker driver with docker runtime
Times for minikube ingress: 22.5s 23.4s 23.5s 22.5s 22.0s Times for minikube start: 27.2s 27.7s 28.0s 28.1s 30.7s docker driver with containerd runtime
Times for minikube (PR 14903) start: 23.9s 26.7s 23.6s 24.1s 23.5s Times for minikube ingress: 27.4s 27.0s 26.9s 27.0s 26.9s |
These are the flake rates of all failed tests.
To see the flake rates of all tests by environment, click here. |
Thanks @spowelljr for adjusting the code and getting the fix in. 1.27 is going to be awesome! |
Hi @Jancis minikube v.1.27.0 is now available! |
Minikube MetalLB addon can't be installed on kubernetes cluster 1.25.0, because it installs PodSecurityPolicy
policy/v1beta1
object that is deprecated with kubernetes 1.25.MetalLB solves this by removing object altogether: metallb/metallb#1569
I made PR that exposes Kubernetes version and conditionally enables psp object for <1.25. Project uses older templating library so
semver
andsemverCompare
can't be used.