That means brew should not force using the newest version but should allow installing the latest patch version of each supported minor release, as listed here: https://endoflife.date/kubernetes
Today, brew installs kubectl 1.28 (1.22 is also available 🤷♂️) which is compatible with 1.27-1.29 but provides no way to install a kubectl version compatible with 1.25-1.26 clusters that are still supported.
Verification
[X] My "brew doctor output" says Your system is ready to brew. and am still able to reproduce my issue.
[X] I ran brew update and am still able to reproduce my issue.
[X] I have resolved all warnings from brew doctor and that did not fix my problem.
kubectl is compatible with Kubernetes clusters with 1 minor version difference: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#before-you-begin
That means brew should not force using the newest version but should allow installing the latest patch version of each supported minor release, as listed here: https://endoflife.date/kubernetes
Today, brew installs kubectl 1.28 (1.22 is also available 🤷♂️) which is compatible with 1.27-1.29 but provides no way to install a kubectl version compatible with 1.25-1.26 clusters that are still supported.
Verification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Install an older minor version of kubectl (because I'm running clusters in this supported version).
What happened (include all command output)?
I can only download kubectl 1.28, which may be instable with kubernetes 1.25
What did you expect to happen?
Find versioned formulas for supported kubernetes versions (
kubectl@1.25
,kubectl@1.26
, ...)Step-by-step reproduction instructions (by running
brew
commands)