Add `kubectl` to `gitlabktl` image
Description
Sometimes someone might want to do something like:
deploy:functions:
stage: deploy
environment: production
extends: .serverless:deploy:functions
before_script:
- kubectl create secret generic my-webhook-token
--from-literal WEBHOOK_TOKEN="$MY_WEBHOOK_TOKEN"
--namespace "$KUBE_NAMESPACE"
--dry-run -o yaml | kubectl apply -f -
- kubectl create secret generic my-api-token
--from-literal API_TOKEN="$MY_API_TOKEN"
--namespace "$KUBE_NAMESPACE"
--dry-run -o yaml | kubectl apply -f -
Currently it needs to be done in a separate stage before the functions deployment job.
Proposal
Add kubectl
to gitlabktl
image to make it possible to simplify pipelines.
Related merge request
Thoughts @DylanGriffith @danielgruesso?
Edited by Grzegorz Bizon