modified the version of dashboard in test/integration/start_stop_delete_test.go file

pull/14269/head
ziyi-xie 2022-06-02 09:11:43 +00:00
parent dd29fd2fe1
commit ab7bb61b31
1 changed files with 2 additions and 2 deletions

View File

@ -448,10 +448,10 @@ func testPause(ctx context.Context, t *testing.T, profile string) {
// Remove container-specific prefixes for naming consistency
// for example in `docker` runtime we get this:
// $ docker@minikube:~$ sudo crictl images -o json | grep dash
// "kubernetesui/dashboard:v2.5.1"
// "kubernetesui/dashboard:vX.X.X"
// but for 'containerd' we get full name
// $ docker@minikube:~$ sudo crictl images -o json | grep dash
// "docker.io/kubernetesui/dashboard:v2.5.1"
// "docker.io/kubernetesui/dashboard:vX.X.X"
func trimImageName(name string) string {
name = strings.TrimPrefix(name, "docker.io/")
name = strings.TrimPrefix(name, "localhost/")