Skip to content

Commit 49f850c

Browse files
authored
Merge pull request #9963 from afbjorklund/dashboard-2.1.0
Upgrade kubernetes dashboard to v2.1.0 for 1.20
2 parents 4acc0c8 + 4c39ffc commit 49f850c

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

deploy/addons/dashboard/dashboard-dp.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ spec:
9191
containers:
9292
- name: kubernetes-dashboard
9393
# WARNING: This must match pkg/minikube/bootstrapper/images/images.go
94-
image: {{default "kubernetesui" .ImageRepository}}/dashboard:v2.0.3
94+
image: {{default "kubernetesui" .ImageRepository}}/dashboard:v2.1.0
9595
ports:
9696
- containerPort: 9090
9797
protocol: TCP

pkg/minikube/bootstrapper/images/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func dashboardFrontend(repo string) string {
148148
repo = "docker.io/kubernetesui"
149149
}
150150
// See 'kubernetes-dashboard' in deploy/addons/dashboard/dashboard-dp.yaml
151-
return path.Join(repo, "dashboard:v2.0.3")
151+
return path.Join(repo, "dashboard:v2.1.0")
152152
}
153153

154154
// dashboardMetrics returns the image used for the dashboard metrics scraper

pkg/minikube/bootstrapper/images/images_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
func TestAuxiliary(t *testing.T) {
2626
want := []string{
2727
"gcr.io/k8s-minikube/storage-provisioner:v4",
28-
"docker.io/kubernetesui/dashboard:v2.0.3",
28+
"docker.io/kubernetesui/dashboard:v2.1.0",
2929
"docker.io/kubernetesui/metrics-scraper:v1.0.4",
3030
}
3131
got := auxiliary("")
@@ -37,7 +37,7 @@ func TestAuxiliary(t *testing.T) {
3737
func TestAuxiliaryMirror(t *testing.T) {
3838
want := []string{
3939
"test.mirror/storage-provisioner:v4",
40-
"test.mirror/dashboard:v2.0.3",
40+
"test.mirror/dashboard:v2.1.0",
4141
"test.mirror/metrics-scraper:v1.0.4",
4242
}
4343
got := auxiliary("test.mirror")

pkg/minikube/bootstrapper/images/kubeadm_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestKubeadmImages(t *testing.T) {
3838
"k8s.gcr.io/etcd:3.4.3-0",
3939
"k8s.gcr.io/pause:3.1",
4040
"gcr.io/k8s-minikube/storage-provisioner:v4",
41-
"docker.io/kubernetesui/dashboard:v2.0.3",
41+
"docker.io/kubernetesui/dashboard:v2.1.0",
4242
"docker.io/kubernetesui/metrics-scraper:v1.0.4",
4343
}},
4444
{"v1.16.1", "mirror.k8s.io", []string{
@@ -50,7 +50,7 @@ func TestKubeadmImages(t *testing.T) {
5050
"mirror.k8s.io/etcd:3.3.15-0",
5151
"mirror.k8s.io/pause:3.1",
5252
"mirror.k8s.io/storage-provisioner:v4",
53-
"mirror.k8s.io/dashboard:v2.0.3",
53+
"mirror.k8s.io/dashboard:v2.1.0",
5454
"mirror.k8s.io/metrics-scraper:v1.0.4",
5555
}},
5656
{"v1.15.0", "", []string{
@@ -62,7 +62,7 @@ func TestKubeadmImages(t *testing.T) {
6262
"k8s.gcr.io/etcd:3.3.10",
6363
"k8s.gcr.io/pause:3.1",
6464
"gcr.io/k8s-minikube/storage-provisioner:v4",
65-
"docker.io/kubernetesui/dashboard:v2.0.3",
65+
"docker.io/kubernetesui/dashboard:v2.1.0",
6666
"docker.io/kubernetesui/metrics-scraper:v1.0.4",
6767
}},
6868
{"v1.14.0", "", []string{
@@ -74,7 +74,7 @@ func TestKubeadmImages(t *testing.T) {
7474
"k8s.gcr.io/etcd:3.3.10",
7575
"k8s.gcr.io/pause:3.1",
7676
"gcr.io/k8s-minikube/storage-provisioner:v4",
77-
"docker.io/kubernetesui/dashboard:v2.0.3",
77+
"docker.io/kubernetesui/dashboard:v2.1.0",
7878
"docker.io/kubernetesui/metrics-scraper:v1.0.4",
7979
}},
8080
{"v1.13.0", "", []string{
@@ -86,7 +86,7 @@ func TestKubeadmImages(t *testing.T) {
8686
"k8s.gcr.io/etcd:3.2.24",
8787
"k8s.gcr.io/pause:3.1",
8888
"gcr.io/k8s-minikube/storage-provisioner:v4",
89-
"docker.io/kubernetesui/dashboard:v2.0.3",
89+
"docker.io/kubernetesui/dashboard:v2.1.0",
9090
"docker.io/kubernetesui/metrics-scraper:v1.0.4",
9191
}},
9292
{"v1.12.0", "", []string{
@@ -98,7 +98,7 @@ func TestKubeadmImages(t *testing.T) {
9898
"k8s.gcr.io/etcd:3.2.24",
9999
"k8s.gcr.io/pause:3.1",
100100
"gcr.io/k8s-minikube/storage-provisioner:v4",
101-
"docker.io/kubernetesui/dashboard:v2.0.3",
101+
"docker.io/kubernetesui/dashboard:v2.1.0",
102102
"docker.io/kubernetesui/metrics-scraper:v1.0.4",
103103
}},
104104
}

pkg/minikube/cruntime/containerd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestAddRepoTagToImageName(t *testing.T) {
2525
imgName string
2626
want string
2727
}{
28-
{"kubernetesui/dashboard:v2.0.3", "docker.io/kubernetesui/dashboard:v2.0.3"},
28+
{"kubernetesui/dashboard:v2.1.0", "docker.io/kubernetesui/dashboard:v2.1.0"},
2929
{"kubernetesui/metrics-scraper:v1.0.4", "docker.io/kubernetesui/metrics-scraper:v1.0.4"},
3030
{"gcr.io/k8s-minikube/storage-provisioner:v4", "gcr.io/k8s-minikube/storage-provisioner:v4"},
3131
}

test/integration/start_stop_delete_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,10 @@ func testPause(ctx context.Context, t *testing.T, profile string) {
370370
// Remove container-specific prefixes for naming consistency
371371
// for example in `docker` runtime we get this:
372372
// $ docker@minikube:~$ sudo crictl images -o json | grep dash
373-
// "kubernetesui/dashboard:v2.0.3"
373+
// "kubernetesui/dashboard:v2.1.0"
374374
// but for 'containerd' we get full name
375375
// $ docker@minikube:~$ sudo crictl images -o json | grep dash
376-
// "docker.io/kubernetesui/dashboard:v2.0.3"
376+
// "docker.io/kubernetesui/dashboard:v2.1.0"
377377
func trimImageName(name string) string {
378378
name = strings.TrimPrefix(name, "docker.io/")
379379
name = strings.TrimPrefix(name, "localhost/")

0 commit comments

Comments
 (0)