Open seanhamlin opened 3 years ago
duplicate of https://github.com/amazeeio/lagoon/issues/2322 I believe
Yes, it looks like it for sure. I searched for an existing issue, and did not find anything at the time.
I ran into this bug today when trying to deploy a production environment with an underscore.
Situation:
Deploying the production environment was not possible and returned this error:
Error: 'myproject_production' would exceed the configured limit of 6 development environments for project myproject
I guess this is because the code that checks the limits on projects compares the unsanitised environment name to the production environment, which is set to work around #2322.
"productionEnvironment": "myproject-production",
Describe the bug
If you have branch name with 'special' characters in them, e.g.:
9.x
feature/main
If you set the
production
branch to be the exact same name as the branch, you will get a non-production environment, as Lagoon appears to be doing normalisation on the name prior to matching the branch name.To Reproduce
Steps to reproduce the behavior:
9.x
development
Expected behavior
Lagoon would not normalise prior to matching
Screenshots
Additional context
This also impacts the development environment limits as well (as seen above).
Cluster is using the new controllers for deployment.
Also appears to be related to https://github.com/amazeeio/lagoon/issues/1944