-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 all available tags to Consul Catalog Backend #2646
Conversation
ad758d9
to
b6ba247
Compare
b6ba247
to
43ffba3
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.
First review, nice work @ldez 👏
desc string | ||
name string | ||
tags []string | ||
defaultValue int64 |
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.
defaultValue
is not used in test cases
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.
fixed
desc string | ||
name string | ||
tags []string | ||
defaultValue int |
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.
defaultValue
is not used in test cases
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.
fixed
desc string | ||
name string | ||
tags []string | ||
defaultValue bool |
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.
defaultValue
is not used in test cases
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.
fixed
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.
Few notes on this huge PR 👏
} | ||
} | ||
|
||
func (p *CatalogProvider) getHeathCheck(tags []string) *types.HealthCheck { |
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.
Do you mean getHealthCheck
?
} | ||
} | ||
|
||
func TestCatalogProviderGetHeathCheck(t *testing.T) { |
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.
Do you mean TestCatalogProviderGetHealthCheck
?
templates/consul_catalog.tmpl
Outdated
{{end}} | ||
|
||
{{ $healthCheck := getHeathCheck $service.Attributes }} |
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.
Do you mean getHealthCheck
?
"getCircuitBreaker": p.getCircuitBreaker, | ||
"getLoadBalancer": p.getLoadBalancer, | ||
"getMaxConn": p.getMaxConn, | ||
"getHeathCheck": p.getHeathCheck, |
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.
Do you mean getHealthCheck
?
43ffba3
to
06cf85f
Compare
06cf85f
to
c195ea1
Compare
- add a dedicate page for Consul Catalog.
c195ea1
to
041007d
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
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
What does this PR do?
Motivation
Homogenization of the providers [part2]: all providers must have the same options available.
More
Additional Notes
After the review I will split
consul
package toconsul
andconsulcatalog
Related to #618, #1465