-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got panic when specifying namespace name for service connect #744
Comments
@itkq Thank you for the reporting! I reproduced this.
In the past, ecs.DescribeServices probably returns a ServiceConnectConfiguration contains the namespace ID, but it seems to return the namespace name now. I'll fix this. Wait a minutes! |
Thank you for the quick response! As a workaround, specifying the ARN allows the ECS service creation and update to succeed, but it causes a diff to occur every time as a side effect. It would be great if this also could be resolved on ecspresso side! $ ecspresso diff
(snip)
+++ ecs-service-def.jsonnet
@@ -69,7 +69,7 @@
"use_put_object": "On"
}
},
- "namespace": "itkq-test.local",
+ "namespace": "[NAMESPACE_ARN]",
"services": [
{
"clientAliases": [ |
I have confirmed that no panic occurs with both the existing service and the new service! Thanks! |
Let's say ecs-service-def.jsonnet is like:
Initial
ecspresso deploy
failed with SIGSEGV as shown below.However, the namespace does indeed exist.
The reason whey this nil pointer dereference happens is
.services[].deployments[].serviceConnectConfiguration.namespace
of DescribeServices response is not the namespace ARN but the namespace name.ecspresso/ecspresso.go
Lines 100 to 115 in 7d2c5da
ecspresso/util.go
Lines 15 to 18 in 7d2c5da
The strange thing is that previously, specifying the name for the namespace was not an issue, but at some point, it started failing. Can you reproduce this issue?
The text was updated successfully, but these errors were encountered: