Skip to content

configobserver: add helper function for observing the Proxy object#485

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
stlaz:proxy_observing
Jul 29, 2019
Merged

configobserver: add helper function for observing the Proxy object#485
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
stlaz:proxy_observing

Conversation

@stlaz
Copy link
Copy Markdown
Contributor

@stlaz stlaz commented Jul 25, 2019

OpenShift infrastructure operators should be observing the Proxy object, add a helper so that we can reuse the code.

Useful at least for the kube and openshift apiserver operators.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 25, 2019
@stlaz stlaz force-pushed the proxy_observing branch from a899e56 to 43d86ab Compare July 25, 2019 15:19
@stlaz stlaz force-pushed the proxy_observing branch from 43d86ab to b90f59a Compare July 26, 2019 08:34
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 26, 2019
@stlaz stlaz force-pushed the proxy_observing branch from b90f59a to 6f58322 Compare July 26, 2019 10:32
@stlaz
Copy link
Copy Markdown
Contributor Author

stlaz commented Jul 26, 2019

Added a unit test, removed logging on Proxy object not-foud to match the featuregates observer behavior.

Comment thread pkg/operator/configobserver/proxy/observe_proxy.go Outdated
Comment thread pkg/operator/configobserver/proxy/observe_proxy.go Outdated
Comment thread pkg/operator/configobserver/proxy/observe_proxy.go
stlaz added 2 commits July 29, 2019 09:21
…re object

If we got an error while getting the infrastructure/cluster object
that's different from NotFound, it should be reported
@stlaz stlaz force-pushed the proxy_observing branch from 6f58322 to e3e91b0 Compare July 29, 2019 07:25
return observedConfig, errs
}
if err != nil {
errs = append(errs, err)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@sttts
Copy link
Copy Markdown
Contributor

sttts commented Jul 29, 2019

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2019
@openshift-ci-robot
Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 29, 2019
@openshift-merge-robot openshift-merge-robot merged commit 802e744 into openshift:master Jul 29, 2019
bertinatto pushed a commit to bertinatto/library-go that referenced this pull request Jul 2, 2020
configobserver: add helper function for observing the Proxy object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants