We currently are in the last steps of migrating away from the certificate-based integration to Gitlab Agent for Kubernetes.
We highly use the auto-deploy app to deploy our applications to Kubernetes.
As the old integrations still exist for the environment “staging” and “production”, we still have the variable “KUBE_NAMESPACE” set.
After deleting the integration, this variable is unset. So all our deployments would run into the default namespace. So I decided to preset the KUBE_NAMESPACE variable with the following CI variables:
But we have some cases where our CI_PROJECT_NAME contains underscores (_) and Kubernetes does not like that.
So my question is, is there a variable I can use, like CI_PROJECT_NAME_SLUG? I dont want to rename alle my projects.