Add support for the use of secrets provisioned via secrets-store-csi-driver-provider-aws that do not allow values with empty string
We are using AWS infrastructure and storing our secrets in AWS Parameter Store(ssm), which generates the secrets in the K8s cluster with the K8s secrets-store-csi-driver-provider-aws controller.
The main problem is that it's not possible to define Parameter Store with empty values. In our case, we only need the use of the runner registration token, and testing with a string with a blank space for the runner token case is not valid for starting the runner.
Because of this, we need to be able to condition in the helm chart that the items of the gitlab-runner.secret
are not included if we don't need one of them.
Workaround/Fix
Update to GitLab 16.0 and use the new runner tokens https://docs.gitlab.com/ee/ci/runners/new_creation_workflow.html. You can use set the registration token to " "
- it will be ignored.