-
Notifications
You must be signed in to change notification settings - Fork 252
csi: add configobserver controller and hook helpers #976
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
Conversation
5d30bec to
2a4c239
Compare
006efef to
b6a80c9
Compare
dcf095c to
6812af3
Compare
pkg/operator/csi/csidrivercontrollerservicecontroller/helpers.go
Outdated
Show resolved
Hide resolved
pkg/operator/csi/csiconfigobservercontroller/csi_config_observer_controller.go
Outdated
Show resolved
Hide resolved
pkg/operator/csi/csidrivercontrollerservicecontroller/helpers.go
Outdated
Show resolved
Hide resolved
pkg/operator/csi/csidrivercontrollerservicecontroller/helpers.go
Outdated
Show resolved
Hide resolved
| deployment.Spec.Template.Annotations = map[string]string{} | ||
| } | ||
| for k, v := range inputHashes { | ||
| annotationKey := fmt.Sprintf("operator.openshift.io/dep-%s", k) |
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.
lets move this into a var/constant
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.
I'd like to leave this on as is. I prefer to leave format strings inline, plus I couldn't re-use the const for the annotation below (%x != %s)
3f41a0a to
b42db8c
Compare
|
/lgtm |
...perator/csi/csidrivercontrollerservicecontroller/csi_driver_controller_service_controller.go
Show resolved
Hide resolved
|
I think https://github.com/openshift/library-go/pull/976/files#r556138811 is my only blocker before approval. Good PR. |
Cloud CSI drivers perform all sorts of operations using the cloud API. However, that's not possible in network-restricted clusters, where requests need to go through a given proxy, unless they target the API server. This patch adds a CSI Config Observer controller to observe the proxy resource and record the information in the operator CR. It also adds a hook function to inject the observed proxy config into the deployment's containers.
|
/test all |
|
/refresh |
|
Thanks, /approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bertinatto, deads2k, gnufied 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 |
|
/refresh |
This PR adds two new functionalities to the CSI pieces of library-go:
csi: add configobserver to watch proxy info
Cloud CSI drivers perform all sorts of operations using the cloud API. However, that's not possible in network-restricted clusters, where requests need to go through a given proxy, unless they target the API server.
This patch adds a CSI Config Observer controller to observe the proxy resource and record the information in the operator CR. It also patches the CSI Controller Service Controller to read this information and pass it to the CSI containers that are part of the Deployment.
csi: add hook that annotates deployment with secret's hash
This is useful for when the secret changes. In this case we want the deployment to be re-deployed.
/assign @deads2k