-
Notifications
You must be signed in to change notification settings - Fork 266
Adds Proxy Controller #245
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
Adds Proxy Controller #245
Conversation
|
/assign @squeed |
Yes, and adding a new |
86864f8 to
79643b8
Compare
| } | ||
|
|
||
| // Watch for changes to primary resource config.openshift.io/v1/Proxy | ||
| err = c.Watch(&source.Kind{Type: &configv1.Proxy{}}, &handler.EnqueueRequestForObject{}) |
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.
It probably makes sense here to watch for changes to configv1.Network here too, so we can get the Network.Status field.
79643b8 to
1204de1
Compare
1204de1 to
b1aab72
Compare
b1aab72 to
d961d0a
Compare
|
Given the possibility of us having to deal with other abstractly-proxy-related things in the future, I think the naming should be more specific than just "proxy" (eg, in And if this is likely to be maintained by the edge team going forward then the directories should get their own |
pkg/controller/proxyconfig/status.go
Outdated
| ) | ||
| platform := infra.Status.PlatformStatus.Type | ||
|
|
||
| // TODO: Does a better way exist to get machineCIDR and controlplane replicas? |
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.
@squeed @danwinship PTAL and let me know if you have a better approach for parsing replicas and machineCIDR from the installer config or using some other resource to get the data.
b8ab96a to
2ea1c4c
Compare
@danwinship good call. I'll update the naming based on one of your suggestions.
@knobunc can you confirm who will own the proxy controller? @danwinship it's my understanding that I'm helping with the proxy controller implementation, but the network edge team is not responsible for maintaining. |
77f1476 to
150521e
Compare
78b5407 to
6b189c8
Compare
|
/test e2e-aws |
865a22e to
efca243
Compare
efca243 to
bae9d27
Compare
bparees
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.
couple minor comments, otherwise lgtm.
bae9d27 to
1293580
Compare
1293580 to
42dbcf8
Compare
| return fmt.Errorf("invalid httpsProxy URI: %v", err) | ||
| } | ||
| if scheme != proxyHTTPScheme && scheme != proxyHTTPSScheme { | ||
| return fmt.Errorf("httpsProxy requires a %q or %s URI scheme", proxyHTTPScheme, proxyHTTPSScheme) |
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.
why is one of these %q and the other %s?
|
/approve Please take a note of the follow-up issues. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danehans, squeed 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 |
Drop the wording from aa39bf3 (OSDOCS-640: Adding docs for configuring proxy during installation, 2019-09-12, openshift#16635), because the network operator explicitly supports both the 'http' and 'https' schemes since openshift/cluster-network-operator@42dbcf8955 (Refactors PR to focus on http/https/no proxy reconciliation, 2019-08-06, openshift/cluster-network-operator#245), which landed before release-4.2 split off from the network operator's master.
Required by #271
Proxyobject.Proxy.specfields.http|https|no Proxyspec to status upon successful validation.Note:
ProxyCA reconciliation requirements are being addressed in #271.Jira: SDN-492
PTAL @squeed @openshift/networking