Start observing the Proxy object#530
Conversation
|
/retest |
|
I think this code is generic enough to live in library-go and being re-used by other operators. (can be a follow up) |
| ) | ||
|
|
||
| func ObserveProxyConfig(genericListers configobserver.Listers, recorder events.Recorder, existingConfig map[string]interface{}) (map[string]interface{}, []error) { | ||
| const proxyPath = "proxy" |
There was a problem hiding this comment.
move this outside, make a comment describing what this is.
There was a problem hiding this comment.
Can we instead share this path somehow between config observation and target config controller? Would make it clear that these two are interconnected.
|
@mfojtik was right to request the observer in library-go, here be the PR: openshift/library-go#485 |
|
This now uses the not-yet merged code from lib-go, appears to work |
|
Pulled in the latest library-go to get the proxy observer from there |
|
Grabbed the |
8bcdc38 to
c04aae6
Compare
Adds an observer for the Proxy object, pulls its fields and passes them to the environment of the deployed kube-apiserver container.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stlaz, sttts 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 |
Adds an observer for the Proxy object, pulls its fields and passes
them to the environment of the deployed kube-apiserver container.