-
Notifications
You must be signed in to change notification settings - Fork 98
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
[Fix] Validate when multiple providers are defined #450
Conversation
@kuritka k8gb can operate without edgeDNS provider, e.g. in local scenario or in some edge case environments where zone delegation is configured outside of k8gb. So that's expected. |
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.
test naming comment/suggestion
beee1de
to
3586b31
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
3586b31
to
3d517e6
Compare
@somaritane, resolved, thanks |
resolves #448 - `controller_test.go` was missing NS1EnabledKey in the cleanup() and configureEnvVar() - rewrite depresolver.getEdgeDNSType(), the function now return one more DNSType: `DNSTypeError` indicating, more than one providers were resolved. Depresolver generates error if finds that state. `DNSTypeNoEdgeDNS` is returned when no provider is recognised and is valid state. - cover functionality by depresolver tests. Signed-off-by: kuritka <kuritka@gmail.com>
3d517e6
to
c3c879f
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.
@kuritka, looks good, just few suggestions
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.
@kuritka LGTM
resolves #448
controller_test.go
was missing NS1EnabledKey in the cleanup() and configureEnvVar(), addedrewrite
depresolver.getEdgeDNSType()
, the function now coud return one more DNSType:DNSTypeError
.DNSTypeError
indicates depresolver found more than one provider.DNSTypeError
generates validation error on k8gb startup.DNSTypeNoEdgeDNS
is returned when no provider is not recognised. This state passes validation; @ytsarev, is that expected behavior ?functionality covered by depresolver tests.
Signed-off-by: kuritka kuritka@gmail.com