Auto devops deploy fails due to invalid secret name

For current project we have a gitlab-runner and gitlab-agent running in a k8s cluster and using auto devops, the review job fails the auto-deploy deploy command with the following error:

The Secret “-secret” is invalid: metadata.name: Invalid value: “-secret”

While I can see that “-secret” is an invalid value I cannot find where or why auto devops is attempting to create a secret named -secret or how I can supply a valid value.

For this project we’re using gitlab.com and wanted to give the default auto-devops a go, i.e no .gitlab-ci.yml and latest auto devops templates.

**$ auto-deploy deploy**
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: [REDACTED]
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: [REDACTED]
Validating chart version...
Fetching the previously deployed chart version... 
Fetching the deploying chart version... v2.28.1
The Secret "-secret" is invalid: metadata.name: Invalid value: "-secret": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')

While I still do not know from where the invalid “-secret” name is being generated, this is no longer an issue.
This was only an issue when I skipped creating the postgreSQL via CI-variables due to PostgreSQL Bitnami's Helm chart not available anymore (#208) · Issues · GitLab.org / cluster-integration / auto-deploy-image · GitLab

Now that a fix has been merged and I no longer skip the postgreSQL I no longer have this issue.