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

Add resolver configuration to nginx #123

Merged
merged 1 commit into from
Jan 12, 2017
Merged

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Jan 10, 2017

The nginx revolver configuration is needed when the external authentication annotation is used.

@aledbf aledbf self-assigned this Jan 10, 2017
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 10, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 41.239% when pulling 42834c9 on aledbf:fix-resolver into f90e9ee on kubernetes:master.

Copy link
Member

@justinsb justinsb left a 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
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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...

Copy link
Member Author

Choose a reason for hiding this comment

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

check added

@aledbf aledbf assigned justinsb and unassigned aledbf Jan 12, 2017
@justinsb
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 12, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 41.108% when pulling d570ea6 on aledbf:fix-resolver into 54d9762 on kubernetes:master.

@aledbf aledbf merged commit c49b03f into kubernetes:master Jan 12, 2017
@aledbf aledbf deleted the fix-resolver branch January 20, 2017 21:16
haoqing0110 pushed a commit to stolostron/management-ingress that referenced this pull request Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. nginx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants