-
Notifications
You must be signed in to change notification settings - Fork 219
Bug 1903165: NE-199 Follow Up Fixes. #501
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 1903165: NE-199 Follow Up Fixes. #501
Conversation
|
@sgreene570: This pull request references Bugzilla bug 1903165, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn 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. |
|
@sgreene570: This pull request references Bugzilla bug 1903165, which is valid. 3 validation(s) were run on this bug
DetailsIn 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. |
1 similar comment
|
@sgreene570: This pull request references Bugzilla bug 1903165, which is valid. 3 validation(s) were run on this bug
DetailsIn 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. |
|
/retest |
Move the Default<Operator/Operand/Canary>Namespace constant definitions from pkg/manifests/manifests.go to pkg/operator/controller/names.go. Correct any invalid references to Default<Foo>Namespace in the process and also replace any hard-coded namespace strings with the correct constant in names.go
pkg/operator/controller/<canary,dns,ingress,status>: Make each controller's `Config` field in `reconciler` types private, since they do not need to be exported. Fix any references to the newly private `config` field of each `reconciler` type.
Remove redundant kubeClient in canary tests: TestMain in test/e2e/operator_test.go defines a global `kclient`, so there's no need for test/e2e/canary_test.go to create another. Move canary status condition test: Simplify the canary status condition test for the default ingress controller by moving the test logic from test/e2e/canary_test.go to test/e2e/operator_test.go. Modify the existing default ingress status test to check for the canary status condition.
18530d8 to
1ebdd4c
Compare
pkg/operator/controller/names.go: Shorten the canary route name so that the canary route hostname isn't needlessly long. pkg/operator/controller/canary/route_test.go: Update route unit tests to match name change.
1ebdd4c to
472bb12
Compare
|
/retest |
1 similar comment
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: frobware, sgreene570 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@sgreene570: All pull requests linked via external trackers have merged: Bugzilla bug 1903165 has been moved to the MODIFIED state. DetailsIn 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. |
Miciah
left a comment
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.
A belated review with suggestions for a few more possible follow-ups...
| // TODO if network-edge wishes to expand the scope of the CA bundle (and you could legitimately see a need/desire to have one CA that verifies all ingress traffic). | ||
| // TODO this could be accomplished using union logic similar to the kube-apiserver's join of multiple CAs. | ||
| if ingress == nil || ingress.Namespace != "openshift-ingress-operator" || ingress.Name != "default" { | ||
| if ingress == nil || ingress.Namespace != operatorcontroller.DefaultOperatorNamespace || ingress.Name != "default" { |
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.
We should also move DefaultIngressControllerName to pkg/operator/controller/names.go and use operatorcontroller.DefaultIngressControllerName here.
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.
Noted. Thanks!
| if err := r.cache.List(context.TODO(), pods, client.InNamespace(operatorcontroller.DefaultOperandNamespace)); err != nil { | ||
| errs = append(errs, fmt.Errorf("failed to list pods in namespace %q: %v", operatorcontroller.DefaultOperatorNamespace, 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.
| if err := r.cache.List(context.TODO(), pods, client.InNamespace(operatorcontroller.DefaultOperandNamespace)); err != nil { | |
| errs = append(errs, fmt.Errorf("failed to list pods in namespace %q: %v", operatorcontroller.DefaultOperatorNamespace, err)) | |
| if err := r.cache.List(context.TODO(), pods, client.InNamespace(operatorcontroller.DefaultOperandNamespace)); err != nil { | |
| errs = append(errs, fmt.Errorf("failed to list pods in namespace %q: %v", operatorcontroller.DefaultOperandNamespace, 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.
whoops. Thanks for catching this!
This PR addresses several fixups from NE-199 Phase 1 and Phase 2. The most notable being the redundant e2e test code in
test/e2e/canary_test.go(see the BZ 1903165).Previous PR comments that this PR addresses (in addition to the canary status e2e test cleanup):
#493 (comment)
https://github.com/openshift/cluster-ingress-operator/pull/476/files#r513779823
https://github.com/openshift/cluster-ingress-operator/pull/476/files#r513784808.
See individual commit messages for more details.