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?
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated via this MR -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process. -
Security reports checked/validated by reviewer