This updates kubernetes packaging to move the kubectl
binary and associated bash-completions to stage1 symlink.
This change supports Kubernetes version skew policy
upgrade optimizations. This ensures that the kubectl binary
remains compatible with the control-plane version.
Test Plan:
PASS: build-pkgs, build-image
PASS: Install ISO on AIO-SX for each K8S version
(i.e., 1.29.2, 1.30.6, 1.31.5, 1.32.2):
- Verify kubectl commands work, including bash-completion.
- Verify binaries located under stage1 directory, e.g.,
find /usr/local/kubernetes -name kubectl
/usr/local/kubernetes/1.29.2/stage1/usr/share/bash-completion/completions/kubectl
/usr/local/kubernetes/1.29.2/stage1/usr/bin/kubectl
..
- Verify the binary is symlinked to stage1, e.g.,
ls -l /usr/bin/kubectl
/usr/bin/kubectl -> /var/lib/kubernetes/stage1/usr/bin/kubectl
Story:2011415
Task: 51998
Depends-On: https://review.opendev.org/c/starlingx/integ/+/947756
Change-Id: Ifc68cdbd0163e52027e2c9f51de4860c9b797be9
Signed-off-by: Jim Gauld <James.Gauld@windriver.com>