-
Notifications
You must be signed in to change notification settings - Fork 109
Bug 1751147: operator: restart the operator pod on trusted-ca-bundle change #194
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -530,7 +530,9 @@ func (c *authOperator) checkDeploymentReady(deployment *appsv1.Deployment, opera | |
| func (c *authOperator) checkRouteHealthy(route *routev1.Route, routerSecret *corev1.Secret, ingress *configv1.Ingress) (ready bool, msg, reason string, err error) { | ||
| caData := routerSecretToCA(route, routerSecret, ingress) | ||
|
|
||
| rt, err := transportFor("", caData, nil, nil) | ||
| // FIXME: this reads too often, either always merge system-trust store in transportForInner or keep this in memory | ||
| systemCaData, _ := ioutil.ReadFile("/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Read the file once in an
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also this does assume a newline at the end of the first byte slice. |
||
| rt, err := transportFor("", append(caData, systemCaData...), nil, nil) | ||
| if err != nil { | ||
| return false, "", "FailedTransport", fmt.Errorf("failed to build transport for route: %v", 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.
Seems high