You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
During testing, a branch named 1299 was not picking up custom routes defined in the .lagoon.yml correctly. It looks like this issue is actually shyaml's indeterminate typing for a string that can be either an integer or a string.
To Reproduce
Steps to reproduce the behavior:
Create a branch with only numbers as its name, like 1299
Define custom routes for that branch in the .lagoon.yml file
Observe that the custom routes are not picked up during the lagoon build.
Expected behavior
Since a branch name consisting of only numbers should be a valid branch name, Lagoon should support using solely digits as branch names
Additional context
The fix for this issue will likely involve forcing shyaml to read every branch name as a string, to remove any ambiguity with regards to the type of the branch name.
The text was updated successfully, but these errors were encountered:
ok - managed to pin this one down, and yes it does fail!
the "legacy" templates read the environment in as a number - at least the branch annotation encases it (incorrectly) in a string
kind: Service
metadata:
labels:
lagoon.sh/environment: 1.23456789e+09
annotations:
lagoon.sh/branch: "1.23456789e+09"
unable to decode "/kubectl-build-deploy/lagoon/services-routes/isolation-network-policy.yaml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Labels: ReadString: expects " or n, but found 1, error found in #10 byte of ...|ronment":1234567890
Describe the bug
During testing, a branch named
1299
was not picking up custom routes defined in the.lagoon.yml
correctly. It looks like this issue is actually shyaml's indeterminate typing for a string that can be either an integer or a string.To Reproduce
Steps to reproduce the behavior:
1299
.lagoon.yml
fileExpected behavior
Since a branch name consisting of only numbers should be a valid branch name, Lagoon should support using solely digits as branch names
Additional context
The fix for this issue will likely involve forcing shyaml to read every branch name as a string, to remove any ambiguity with regards to the type of the branch name.
The text was updated successfully, but these errors were encountered: