Add controllerset for controlling an apiserver deployment#667
Add controllerset for controlling an apiserver deployment#667openshift-merge-robot merged 2 commits intoopenshift:masterfrom
Conversation
47ad796 to
cfb43b7
Compare
|
straigth move? if so, it can be lgtmd /approve |
| // so it deletes the rest and requeues. The ns controller starts again and does a complete discovery and.... fails. The | ||
| // failure means it refuses to complete the cleanup. Now, we don't actually want to delete the resoruces from our | ||
| // aggregated API, only the server plus config if we remove the apiservices to unstick it, GC will start cleaning | ||
| // everything. For now, we can unbork 4.0, but clearing the finalizer after the pod and daemonset we created are gone. |
There was a problem hiding this comment.
with so much apiserver specifics, why not put everything into pkg/operator/apiserver/controller/namespacefinalizer, and the others in similar places?
| @@ -0,0 +1,234 @@ | |||
| package apiservicecontroller | |||
There was a problem hiding this comment.
pkg/operator/apiserver/controllers/apiserver
| @@ -0,0 +1,199 @@ | |||
| package apiservercontrollerset | |||
There was a problem hiding this comment.
pkg/operator/apiserver/controllerset
cfb43b7 to
a366955
Compare
|
@sttts thanks, that makes sense, added the suggested changes. @deads2k it is a clean move (with the repackaging now) + a fix to use controllers directly in the slice https://github.com/openshift/library-go/pull/667/files#diff-0c281fce8ed3b258f8b6fb4cec7b5ea7R196-R198 in case the goroutine triggered after the loop variable changed to point to the next controller. |
|
/hold |
| queue workqueue.RateLimitingInterface | ||
| } | ||
|
|
||
| func NewAPIServiceController( |
There was a problem hiding this comment.
this has slightly changed in openshift/cluster-openshift-apiserver-operator#294
worth picking as it made it more generic.
a366955 to
79d55b8
Compare
79d55b8 to
2ce1427
Compare
|
/hold cancel |
2ce1427 to
1ad3a14
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, p0lyn0mial, stlaz 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 |
Add controllerset for controlling an apiserver deployment
Add controller for NS finalization of a running API server deployment, controller handling an API server deployment's APIServices, and a controllerset which bundles these controllers + some others that do the API server housekeeping