Draft: kubectl build converted to multi-stage build
What does this MR do?
From the discussion started at !570 (comment 483984941), a bit of work was done to change the kubectl
image build to a multi-stage build. This does a couple of things:
- Eliminate the need for the intermediate Docker image to pull the
kubectl
andyq
binaries - Only a single instance of the
KUBECTL_VERSION
build arg needs to be maintained with a default value - Single CI job instead of two
Related issues
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated