From 2ede22646b1969ec7a9bbed543fdf7b351583c4e Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Wed, 11 Sep 2024 08:29:23 +1200 Subject: [PATCH] fix(version): add specific version for updater image [BE-11153] (#12202) --- api/datastore/test_data/output_24_to_latest.json | 2 +- api/portainer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/datastore/test_data/output_24_to_latest.json b/api/datastore/test_data/output_24_to_latest.json index 25ed33229..3f9e0d46c 100644 --- a/api/datastore/test_data/output_24_to_latest.json +++ b/api/datastore/test_data/output_24_to_latest.json @@ -601,7 +601,7 @@ "RequiredPasswordLength": 12 }, "KubeconfigExpiry": "0", - "KubectlShellImage": "portainer/kubectl-shell", + "KubectlShellImage": "portainer/kubectl-shell:2.22.0", "LDAPSettings": { "AnonymousMode": true, "AutoCreateUsers": true, diff --git a/api/portainer.go b/api/portainer.go index 9460fad14..5841a7901 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -1611,7 +1611,7 @@ const ( // DefaultUserSessionTimeout represents the default timeout after which the user session is cleared DefaultKubeconfigExpiry = "0" // DefaultKubectlShellImage represents the default image and tag for the kubectl shell - DefaultKubectlShellImage = "portainer/kubectl-shell" + DefaultKubectlShellImage = "portainer/kubectl-shell:" + APIVersion // WebSocketKeepAlive web socket keep alive for edge environments WebSocketKeepAlive = 1 * time.Hour // AuthCookieName is the name of the cookie used to store the JWT token