-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add missing functions for ECS template #2312
Conversation
ea6fb44
to
a92b9ef
Compare
a92b9ef
to
9097e9f
Compare
Looks like Semaphore is having some issues (docker not running, hosts rebooting), gonna push another and hopefully it goes through. EDIT: Totally not having issues, I was misunderstanding the host reboot, it is really from failing gofmt (sorry for all the CI noise) |
9b48ee4
to
7d4a7b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution 👍
provider/ecs/ecs.go
Outdated
"hasStickinessLabel": p.hasStickinessLabel, | ||
"getStickinessCookieName": p.getStickinessCookieName, | ||
// generateECSConfig fills the config template with the given instances | ||
func (p *Provider) generateECSConfig(services map[string][]ecsInstance, ecsFuncMap template.FuncMap) (*types.Configuration, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explains ecsFuncMap
? It's always nil
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For ease of testing. I wanted to be able to have a failure case, but I see that is useless now. I will change.
7d4a7b8
to
aa626af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👏
- Some functions were missing, this adds them to the function map passed into the template loader - Adds testing around generating ECS configuration - This regression was added in traefik#2050
aa626af
to
4c59c6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
map passed into the template loader
When using ECS, on Traefik start these messages appear in the logs: