-
Notifications
You must be signed in to change notification settings - Fork 8.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 resolver configuration to nginx #123
Conversation
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.
Question about behaviour when GetSystemNameServers returns an error
if err != nil { | ||
glog.Warningf("unexpected error reading system nameservers: %v", err) | ||
} | ||
to.Resolver = h |
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.
Should we do this even if there was an 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.
changed
@@ -53,6 +54,9 @@ func TestMergeConfigMapToStruct(t *testing.T) { | |||
def.UseProxyProtocol = true | |||
def.GzipTypes = "text/html" | |||
|
|||
h, _ := dns.GetSystemNameServers() | |||
def.Resolver = h |
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.
Ditto - presumably only if there was not an error? Although in this case I suspect we fail the test (t.Fatalf) and see what happens...
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.
check added
/lgtm |
The nginx revolver configuration is needed when the external authentication annotation is used.