Draft: Add CI_KUBERNETES_ACTIVE for CI/CD tunnel
What does this MR do and why?
Sets CI_KUBERNETES_ACTIVE
to 'true'
when a CI/CD tunnel's KUBECONFIG
is injected.
This variable is used by Auto Deploy to determine if deployments to Kubernetes clusters are expected.
The alternative would be to update all of the Auto DevOps
Kubernetes jobs to also run if a KUBECONFIG
is present:
rules:
- - if: '$CI_KUBERNETES_ACTIVE == null || $CI_KUBERNETES_ACTIVE == ""'
+ - if: '($CI_KUBERNETES_ACTIVE == null || $CI_KUBERNETES_ACTIVE == "") && ($KUBECONFIG == null || $KUBECONFIG == "")'
when: never
Part of #299350 (closed)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Hordur Freyr Yngvason