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
We have two similarly named services, monolith and monolith-frontend. These both have deploy actions and set up several sync paths.
When doing a deploy where both services are in sync mode, the similar name will cause the monolith deployment to terminate syncs from the monolith-frontend deployment
Both services are able to deploy their syncs simultaneously without issue.
Workaround
After deploying with the above command, we can restart the monolith-frontend syncs with sync restart monolith-frontend. This lets the syncs get set up successfully without intervention from the monolith deployment.
Suggested solution(s)
The error is coming from this check for unexpected or previously created syncs.
Because the getSyncKeyPrefix method is using kebabCase and is compared via startsWith, the monolith-frontend action name collides with the monolith action.
# Full sync keys from `sync status`:
k-8-s-dns-dev-dentonalford-monolith-frontend-deployment-monolith-frontend-some-sync-path
k-8-s-dns-dev-dentonalford-monolith-deployment-monolith-different-sync-path
# presumed prefix key result:
k-8-s-dns-dev-dentonalford-monolith-frontend-
k-8-s-dns-dev-dentonalford-monolith- # this will match both prefix keys when using `startsWith`
Ensuring the full action name is present in the check should resolve the issue.
Additional context
To validate the issue, I updated the monolith-frontend service name to monolithfrontend. This resolved the issue in my environment.
Your environment
OS: macOS 13.5.2
How I'm running Kubernetes: Azure
garden version: 0.13.18
The text was updated successfully, but these errors were encountered:
Garden Bonsai (0.13) Bug
Current Behavior
We have two similarly named services,
monolith
andmonolith-frontend
. These both have deploy actions and set up severalsync
paths.When doing a deploy where both services are in sync mode, the similar name will cause the
monolith
deployment to terminate syncs from themonolith-frontend
deploymentDeploy command:
Termination errors:
Expected behavior
Both services are able to deploy their syncs simultaneously without issue.
Workaround
After deploying with the above command, we can restart the
monolith-frontend
syncs withsync restart monolith-frontend
. This lets the syncs get set up successfully without intervention from themonolith
deployment.Suggested solution(s)
The error is coming from this check for unexpected or previously created syncs.
Because the getSyncKeyPrefix method is using
kebabCase
and is compared viastartsWith
, themonolith-frontend
action name collides with themonolith
action.Ensuring the full action name is present in the check should resolve the issue.
Additional context
To validate the issue, I updated the
monolith-frontend
service name tomonolithfrontend
. This resolved the issue in my environment.Your environment
garden version: 0.13.18
The text was updated successfully, but these errors were encountered: