User Story
As a cloudctl user, I want cloudctl kubectl to automatically use the correct kubectl version for each cluster, so I never hit API compatibility issues.
Description
cloudctl kubectl <args> — detects the cluster's Kubernetes version via the existing cluster-version command, downloads the matching kubectl binary from dl.k8s.io into XDG cache, auto-injects --kubeconfig, --context, and --namespace from the active config, runs OIDC logon before exec. Handles plugin subcommand argument ordering and shell completion.
Acceptance Criteria
Reference Issues
Epic: #70
User Story
Description
cloudctl kubectl <args>— detects the cluster's Kubernetes version via the existingcluster-versioncommand, downloads the matchingkubectlbinary fromdl.k8s.iointo XDG cache, auto-injects--kubeconfig,--context, and--namespacefrom the active config, runs OIDC logon before exec. Handles plugin subcommand argument ordering and shell completion.Acceptance Criteria
cluster-versionbefore downloadkubectlbinary downloaded and cached per version--kubeconfig,--context,--namespaceinjected unless explicitly provided by user__completesubcommand handled correctly (no interactive logon)Reference Issues
Epic: #70