Skip to content

Allow extra arguments in helm commands for auto-deploying application

What does this MR do?

I want to share with you my solution for the issue #56961 (moved), it's an alternative version of my previous Merge Requests !25687 (closed) and !25962 (closed)

You can use a HELM_EXTRA_ARGS CI variable to set additional arguments to the helm command who Auto Deploy your application.

I think it can answer to both options proposed by @DylanGriffith https://gitlab.com/gitlab-org/gitlab-ce/issues/56961#note_136191131, some comments of @proglottis are also relevant: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25687#note_148986469 and this one https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25962#note_150326465

Here, a bit of documentation to explain what you can do...

Set additional Helm chart values in a CI variable

Go to your GitLab project's Settings > CI/CD, then expand the section called Environment variables.

You can set your additional Helm chart values in a CI variable, like this:

Variable Value
HELM_EXTRA_ARGS --set memcached.enabled=$MEMCACHED_ENABLED --set memcached.replicaCount=1 --set memcached.pdbMinAvailable=0

What are the relevant issue numbers?

#56961 (moved)

Does this MR meet the acceptance criteria?

Merge request reports