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])?)*')