Use chart app version for runner image value without tag
The runner image to be used for deployment is either the default value gitlab/gitlab-runner:[alpine-v{VERSION}|bleeding]
or the image name defined in the values file.
Current behavior
When specifying the image name in the values file, the tag must always be provided. The drawback is that the values file must be updated with every chart change, that defines already the application version, to update the image tag accordingly. This introduces also the risk of using a chart version with a different image version than expect as the version value has to be defined twice by the user (chart version and image version)
Expected behavior
The chart should allow to specify in the values file the image with or without tag:
- with tag (e.g.
example.com/gitlab/gitlab-runner:alpine-v13.7.0
): the chart should use the image name as provided. - without tag (e.g.
example.com/gitlab/gitlab-runner
): the chart should use the same app version logic as for the default.
Proposed change
Check if the specified image name in the values file doesn't contain the tag (e.g. doesn't contain char :
) and apply the same application version logic as for the default image name.