Describe the bug
Using the various kubectl plugins we have added, it is notable that the 0.28.0 versions of them cannot interact with kcp systems <= 0.27. The reason for that is that we have started using v1alpha2 APIs for apis.kcp.io across the code base, including the kubectl plugins.
This results in "could not find requested resource" or similar errors when running kubectl ws <workspace> to switch a workspace (because that looks for APIBindings) or kubectl kcp bind (because that tries to use APIBindings).
Given that we have new features in those commands to some degree I believe that we should not go back to v1alpha1 by default.
Steps To Reproduce
- Install
kubectl plugin collection for kcp 0.28.0.
- Start a
kcp process with version 0.27.1.
- Create a workspace with
kubectl create-workspace test.
- Enter workspace with
kubectl ws test.
- Observe error:
error checking APIBindings: the server could not find the requested resource (get apibindings.apis.kcp.io).
Expected Behaviour
The kubectl plugins should be downwards-compatible and fall back to v1alpha1 if v1alpha2 is not available from the server.
Additional Context
No response
Describe the bug
Using the various
kubectlplugins we have added, it is notable that the 0.28.0 versions of them cannot interact with kcp systems <= 0.27. The reason for that is that we have started usingv1alpha2APIs forapis.kcp.ioacross the code base, including thekubectlplugins.This results in "could not find requested resource" or similar errors when running
kubectl ws <workspace>to switch a workspace (because that looks forAPIBindings) orkubectl kcp bind(because that tries to useAPIBindings).Given that we have new features in those commands to some degree I believe that we should not go back to
v1alpha1by default.Steps To Reproduce
kubectlplugin collection for kcp 0.28.0.kcpprocess with version 0.27.1.kubectl create-workspace test.kubectl ws test.error checking APIBindings: the server could not find the requested resource (get apibindings.apis.kcp.io).Expected Behaviour
The
kubectlplugins should be downwards-compatible and fall back tov1alpha1ifv1alpha2is not available from the server.Additional Context
No response