Skip to content
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

Support Service Discovery #74

Merged
merged 5 commits into from
Dec 20, 2018

Conversation

kaorimatz
Copy link
Collaborator

This adds a new parameter called service_discovery to the ecs scheduler.

Because the type of the serviceRegistries parameter for CreateService
API is Array 1, the service_discovery parameter is defined as an array
even though currently ECS doesn't allow a service to have more than 1
service registries.

This adds a new parameter called service_discovery to the ecs scheduler.

Because the type of the serviceRegistries parameter for CreateService
API is Array [1], the service_discovery parameter is defined as an array
even though currently ECS doesn't allow a service to have more than 1
service registries.

[1]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-serviceRegistries
@kaorimatz kaorimatz force-pushed the support-service-discovery branch 2 times, most recently from 0f04e9c to 6693fd0 Compare December 14, 2018 18:58
ECS API allows us to create a service with a service registry in a
public DNS namespace, but tasks stop with "The Service Discovery
instance could not be registered." error.
namespace_id = service.fetch('namespace_id')
namespace = get_namespace(namespace_id)
if !namespace
raise "Service discovery namespace #{namespace_id} not found"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please raise Hako::Error for generic errors

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dececdd 🔨

# @param [Hash] expected_service
# @param [Aws::ServiceDiscovery::Types::ServiceSummary] actual_service
# @return [void]
def warn_unallowed_service_change(expected_service, actual_service)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/unallowed/disallowed/ ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

119eb7f 🔨

@eagletmt eagletmt merged commit 7e851ed into eagletmt:master Dec 20, 2018
@kaorimatz kaorimatz deleted the support-service-discovery branch December 20, 2018 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants