-
Notifications
You must be signed in to change notification settings - Fork 97
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
OCPBUGS-17022: further reduce frequency of proxy config checks where necessary #630
base: master
Are you sure you want to change the base?
Conversation
@liouk: This pull request references Jira Issue OCPBUGS-17022, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
/hold cancel |
a9c19e5
to
a332db4
Compare
@liouk: This pull request references Jira Issue OCPBUGS-17022, 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. |
@liouk: This pull request references Jira Issue OCPBUGS-17022, 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. |
5cdbfd5
to
e3dfe2b
Compare
@liouk: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
b56b962
to
e7672ff
Compare
/retest-required |
7942d3a
to
99e7947
Compare
@liouk: This pull request references Jira Issue OCPBUGS-17022, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
/jira refresh |
@liouk: This pull request references Jira Issue OCPBUGS-17022, 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. |
/jira refresh |
if syncCtx == nil { | ||
return | ||
} |
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.
remove, panic instead
@@ -57,6 +57,19 @@ func NewOAuthRouteCheckController( | |||
return getOAuthRouteTLSConfig(cmLister, secretLister, ingressLister, systemCABundle) | |||
} | |||
|
|||
filterFunc := factory.NamesFilter( |
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.
non-generic, self-explanatory name, please
} | ||
transport.TLSClientConfig = tlsConfig | ||
|
||
// these are the fields that are set by our getTLSConfigFn funcs | ||
tlsChanged = c.lastServerName != tlsConfig.ServerName || !tlsConfig.RootCAs.Equal(c.lastCA) |
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.
tlsConfig
is a generic construct, is comparison of just these two attributes good enough?
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.
These are the only fields that are set by the oauth endpoints controller:
cluster-authentication-operator/pkg/controllers/oauthendpoints/oauth_endpoints_controller.go
Lines 274 to 276 in 91360bd
return &tls.Config{ RootCAs: rootCAs, }, nil cluster-authentication-operator/pkg/controllers/oauthendpoints/oauth_endpoints_controller.go
Lines 294 to 302 in 91360bd
return &tls.Config{ RootCAs: rootCAs, // Specify a host name allowed by the serving cert of the // endpoints to ensure that TLS validates successfully. The // serving cert the endpoint uses does not include IP SANs // so accessing the endpoint via IP would otherwise result // in validation failure. ServerName: "oauth-openshift.openshift-authentication.svc", }, nil
return err | ||
tlsChanged := false | ||
var tlsConfig *tls.Config | ||
if c.getTLSConfigFn != nil { |
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.
do we allow this to be nil?
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.
This was like this before -- I've removed the check now, it is now used as endpointListFn()
is, without any nil check.
that ignores updates that do not modify the actual object; this can occur when an informer updates its cache, as the cache update will trigger a sync even if there's no change in the object
…outeCheckController
256229d
to
d12fe44
Compare
New changes are detected. LGTM label has been removed. |
If there are no changes in the endpoint parameters, skip the check.
d12fe44
to
91360bd
Compare
@liouk: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/retest-required |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/lifecycle frozen |
@liouk: The 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-sigs/prow repository. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
PR needs rebase. 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-sigs/prow repository. |
/lifecycle frozen |
@liouk: The 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-sigs/prow repository. |
/remove-lifecycle stale |
This PR brings the following improvements:
OAuthRouteCheckController
from 1 to 5 minutesProxyConfigChecker
to ignore events caused by informer cache resyncs that don't yield changes in the respective config mapsOAuthRouteCheckController