-
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
Upgrade kubernetes dashboard from v2.3.1 to v2.5.1 #13741
Conversation
Welcome @ziyi-xie! |
Hi @ziyi-xie. 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. |
pkg/minikube/assets/addons.go
Outdated
@@ -134,7 +134,7 @@ var Addons = map[string]*Addon{ | |||
MustBinAsset(addons.DashboardAssets, "dashboard/dashboard-secret.yaml", vmpath.GuestAddonsDir, "dashboard-secret.yaml", "0640"), | |||
MustBinAsset(addons.DashboardAssets, "dashboard/dashboard-svc.yaml", vmpath.GuestAddonsDir, "dashboard-svc.yaml", "0640"), | |||
}, false, "dashboard", "kubernetes", map[string]string{ | |||
"Dashboard": "kubernetesui/dashboard:v2.3.1@sha256:ec27f462cf1946220f5a9ace416a84a57c18f98c777876a8054405d1428cc92e", | |||
"Dashboard": "kubernetesui/dashboard:v2.5.0@sha256:ec27f462cf1946220f5a9ace416a84a57c18f98c777876a8054405d1428cc92e", |
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.
Hi! I think I have to change the hash here, but the hash for v2.3.1 is different from the one I checked on dockerhub. Could you tell me where can I find it?
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.
You can get the digest(kubernetesui/dashboard:v2.3.1@sha256:ec27f462cf1946220f5a9ace416a84a57c18f98c777876a8054405d1428cc92e) by docker inspect kubernetesui/dashboard:v2.3.1 --format='{{index .RepoDigests}}'
.
Note that you need to pull the image(kubernetesui/dashboard:v2.3.1
) to local, in advance.
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.
Thank you so much for your help!!
Can one of the admins verify this patch? |
/hold |
…e/assets/addons.go
/hold cancel |
Could you add some contexts of this PR on description?
|
@@ -27,7 +27,7 @@ func TestAddRepoTagToImageName(t *testing.T) { | |||
imgName string | |||
want string | |||
}{ | |||
{"kubernetesui/dashboard:v2.1.0", "docker.io/kubernetesui/dashboard:v2.1.0"}, | |||
{"kubernetesui/dashboard:v2.5.0", "docker.io/kubernetesui/dashboard:v2.5.0"}, | |||
{"kubernetesui/metrics-scraper:v1.0.4", "docker.io/kubernetesui/metrics-scraper:v1.0.4"}, |
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.
In the previous upgrade, this file has not been updated, so metrics-scraper is not the latest version.
I think it's better to update from v1.0.4 to v1.0.7.
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.
It was corrected and thank you so much for letting me know!
…ainerd_test.go file
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 54.6s 52.7s 52.1s 55.2s 55.3s Times for minikube (PR 13741) ingress: 29.6s 29.5s 29.6s 29.5s 28.5s docker driver with docker runtime
Times for minikube start: 29.6s 25.6s 25.2s 25.4s 26.1s Times for minikube ingress: 22.9s 20.9s 21.9s 22.9s 23.4s docker driver with containerd runtime
Times for minikube start: 34.4s 45.8s 40.7s 41.4s 45.4s Times for minikube ingress: 18.9s 19.4s 33.4s 33.4s 18.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. |
@medyagh Hi! Thank you for running the test for me! And I noticed that there are several tests failed and I don't have any clue about the reason. Could you tell me what I can do to fix it? Looking forward to hearing from you and many thanks. :) |
@ziyi-xie Dashboard 2.5.1 was released last night. Could you bump to it? |
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.
Do you want to bump to v2.5.1?
@shu-mutou It was corrected and thank you so much for letting me know! |
@klaases I've just bumped it to v2.5.1 and could you check if everything looks OK please? Thank you. |
kvm2 driver with docker runtime
Times for minikube ingress: 29.1s 28.5s 29.0s 29.0s 28.6s Times for minikube start: 54.9s 52.7s 52.4s 53.1s 52.3s docker driver with docker runtime
Times for minikube ingress: 21.9s 21.5s 21.9s 22.4s 22.4s Times for minikube start: 29.1s 27.2s 25.3s 26.0s 26.6s docker driver with containerd runtime
Times for minikube start: 31.1s 40.5s 40.4s 45.8s 45.2s Times for minikube ingress: 32.9s 33.4s 23.4s 18.9s 19.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. |
pkg/minikube/assets/addons.go
Outdated
@@ -134,7 +134,7 @@ var Addons = map[string]*Addon{ | |||
MustBinAsset(addons.DashboardAssets, "dashboard/dashboard-secret.yaml", vmpath.GuestAddonsDir, "dashboard-secret.yaml", "0640"), | |||
MustBinAsset(addons.DashboardAssets, "dashboard/dashboard-svc.yaml", vmpath.GuestAddonsDir, "dashboard-svc.yaml", "0640"), | |||
}, false, "dashboard", "kubernetes", map[string]string{ | |||
"Dashboard": "kubernetesui/dashboard:v2.3.1@sha256:ec27f462cf1946220f5a9ace416a84a57c18f98c777876a8054405d1428cc92e", | |||
"Dashboard": "kubernetesui/dashboard:v2.5.1@sha256:cc746e7a0b1eec0db01cbabbb6386b23d7af97e79fa9e36bb883a95b7eb96fe2]", |
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.
Thanks for bump to 2.5.1!
But the ]
at the last of hash is not needed. Please remove it.
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.
I've just corrected it and thank you so much!
kvm2 driver with docker runtime
Times for minikube start: 54.3s 53.0s 51.9s 52.7s 52.5s Times for minikube (PR 13741) ingress: 25.0s 29.1s 30.5s 29.5s 29.1s docker driver with docker runtime
Times for minikube (PR 13741) start: 36.7s 35.8s 36.6s 35.6s 36.6s Times for minikube ingress: 22.9s 22.9s 22.9s 23.0s 23.4s docker driver with containerd runtime
Times for minikube (PR 13741) start: 74.3s 67.2s 73.7s 73.0s 68.7s Times for minikube ingress: 23.4s 23.4s 19.0s 22.9s 19.4s |
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. |
/assign @medyagh |
/assign @blueelvis |
@spowelljr Hi! Sorry for the sudden message. Would it be possible for you to check if everything is ok with this PR for me please? Many thanks. |
@@ -103,7 +103,7 @@ func TestKubeadmImages(t *testing.T) { | |||
"k8s.gcr.io/etcd:3.2.24", | |||
"k8s.gcr.io/pause:3.1", | |||
"gcr.io/k8s-minikube/storage-provisioner:" + version.GetStorageProvisionerVersion(), | |||
"docker.io/kubernetesui/dashboard:v2.3.1", | |||
"docker.io/kubernetesui/dashboard:v2.5.1", |
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.
Doesn't have to happen in this PR, but we should make the dashboard, metrics-scraper, and pause strings into consts as they're independent of the Kubernetes version, and bumping the version of one of those three requires changing the version for every test case.
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.
Noted with many thanks.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: klaases, spowelljr, ziyi-xie The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This gives
To see this:
|
Thank you for letting me know! But I didn't encounter such situation. |
Kubernetes dashboard has been upgraded to v2.5.1 now, and this PR fixed the version of dashboard to v2.5.1 in minikube.
https://github.com/kubernetes/dashboard/releases