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
Bug 1813062: Updates Status Reconciliation to Support DNS Service #187
Bug 1813062: Updates Status Reconciliation to Support DNS Service #187
Conversation
@danehans: This pull request references Bugzilla bug 1813062, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@danehans: This pull request references Bugzilla bug 1813062, which is valid. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Looks great! One small comment.
return wait.PollImmediate(1*time.Second, timeout, func() (bool, error) { | ||
co := &configv1.ClusterOperator{} | ||
if err := cl.Get(context.TODO(), controller.DNSClusterOperatorName(), co); err != nil { | ||
return false, err |
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.
Thoughts on returning false, nil
here and logging the error instead of returning false, err
?
return wait.PollImmediate(1*time.Second, timeout, func() (bool, error) { | ||
dns := &operatorv1.DNS{} | ||
if err := cl.Get(context.TODO(), name, dns); err != nil { | ||
return false, err |
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.
return false, err
=> return false, nil
?
(Log the err instead)
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.
@sgreene570 L259 mirrors ingress operator here. I prefer the 2 operators are as consistent and address both in a follow-on PR.
6311cac
to
3cc9fde
Compare
The good thing is that the operator surfaced a /test e2e-aws |
CI is green. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danehans, sgreene570 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
@danehans: All pull requests linked via external trackers have merged: openshift/cluster-dns-operator#187, openshift/cluster-dns-operator#182. Bugzilla bug 1813062 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The dns cluster operator is fed the DNS operator's namespace in pkg/operator/controller/status/controller.go. This commit fixes a regression brough in by openshift#187 in which the cluster operator is given a reference to the "dns" namespace, which does not exist. This commit instead gives the cluster operator the a reference to the correct operator namespace set at run time.
The dns cluster operator is fed the DNS operator's namespace in pkg/operator/controller/status/controller.go. This commit fixes a regression brought in by openshift#187 in which the cluster operator is given a reference to the "dns" namespace, which does not exist. This commit instead gives the cluster operator a reference to the correct operator namespace set at run time.
Previously, the operator would surface status conditions indicating an issue with the DNS daemonset if the DNS service could not be created. This PR does the following:
dns
instead of dependent resources ofdns
./assign @Miciah @knobunc
/cc @frobware @sgreene570