Add the ability to disable helmfile talking to gitlab.com in CI
What does this MR do?
Part of gitlab-com/gl-infra/delivery#227 (closed)
This commit adds new helmfile
hooks
that will disable access to
- gitlab.com
- registry.gitlab.com
- charts.gitlab.io
If the following conditions are met
- The environment variable
ARTIFACT_AVAILABLE
is set (so not on chart bumps) - The environment variable
GITLAB_ACCESS_DISABLE
is set (which we can set as a CI variable as needed)
This disabling only happens for the duration of the helmfile
helm execution, so other parts of the CI
jobs such as mr-notifier
still work.
Reviewer Check-list
-
Diff jobs reviewed -
Do the changes in the Diffs reflect the desired state of this MR? -
Are there changes shown in the diffs unassociated with this MR? - This may require a rebase or further investigation
Edited by John Skarbek