Page MenuHomePhabricator

[infra, k8s, webservice] remove deprecated kubectl --wait flag before k8s 1.29 upgrade
Closed, ResolvedPublic

Description

local.tf-test@lima-kilo:~$ toolforge webservice php7.4 shell -- ls
Flag --wait has been deprecated, because it is not used by this command. It will be removed in version 1.29.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
d/changelog: bump to 0.103.11repos/cloud/toolforge/webservice-cli!56sstefanovabump_to_0.103.11main
shell: drop --waitrepos/cloud/toolforge/webservice-cli!55lucaswerkmeisterno-waitmain
shell: drop --waitrepos/cloud/toolforge/webservice-cli!54lucaswerkmeisterno-waitmain
Customize query in GitLab

Event Timeline

FWIW, according to the commit deprecating this and other flags, --wait had no effect (since at least 1.26, which is the version we’re running), so it should be safe to just remove. (I haven’t been able to find any old documentation that would tell us whether it used to do something or not, but if the --wait was ever needed for something then it probably already broke whenever an older k8s version made the flag have no effect.)

(Kubernetes 1.31 apparently adds a --wait option again but who knows if it does the same thing.)

I guess so :P since I already started looking into this after noticing the output (I’m guessing it’s due to the Kubernetes upgrade yesterday?)

Slst2020 changed the task status from Open to In Progress.Sep 3 2024, 6:37 PM

thanks @LucasWerkmeister!

you know... if you want to be part of the k8s upgrades workgroup... just say the word :))

there's the mythical Uwubernetes upgrade... •⩊•

The warning still appears, by the way – I guess someone™ still needs to deploy the new version? (I might technically have the required permissions but wouldn’t know how to do it…)

Heh, I think I'm that someone. What happened is that Toolsbeta was in disarray for a while during the last k8s upgrade, so I postponed testing and deploying the MR, and then promptly forgot 🙈

bd808 reopened this task as Open.EditedOct 28 2024, 3:12 PM
bd808 subscribed.

This deployment seems to still be pending.

tools.schedule-deployment@tools-bastion-12:~$ webservice shell
Flag --wait has been deprecated, because it is not used by this command. It will be removed in version 1.29.

Still happening after the 1.28 upgrade today:

tools-bastion-12:~$ webservice shell
Flag --wait has been deprecated, because it is not used by this command. It will be removed in version 1.29.

Yup, it's because I've (still) not deployed this. It's on my todo list now.

done – the deprecation warning is gone now.

tools.automated-toolforge-tests@tools-bastion-12:~$ webservice shell
tools.automated-toolforge-tests@shell-1730880334:~$