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