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
updates to the newest version of library-go (context) #345
updates to the newest version of library-go (context) #345
Conversation
@@ -22,18 +24,20 @@ type OpenshiftDeploymentLatestRevisionClient struct { | |||
var _ revisioncontroller.LatestRevisionClient = OpenshiftDeploymentLatestRevisionClient{} | |||
|
|||
func (c OpenshiftDeploymentLatestRevisionClient) GetLatestRevisionState() (*operatorv1.OperatorSpec, *operatorv1.OperatorStatus, int32, string, error) { | |||
o, err := c.TypedClient.OpenShiftAPIServers().Get("cluster", metav1.GetOptions{}) | |||
ctx := context.TODO() // needs support in library-go |
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 requires support in library-go
, what's our current plan, is somebody working on it ?
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.
return factory.New().WithInformers( | ||
kubeInformersForTargetNamespace.Core().V1().Pods().Informer(), | ||
kubeInformersForTargetNamespace.Apps().V1().Deployments().Informer(), | ||
).ResyncEvery(time.Minute*5).WithSync(c.sync).ToController(fullname, eventRecorder.WithComponentSuffix("finalizer-controller")) |
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.
adding resync
just in case.
return factory.New().WithInformers( | ||
c.podInformer.Informer(), | ||
c.secretInformer.Informer(), | ||
).WithSync(c.sync).ToController("PruneController", eventRecorder.WithComponentSuffix("prune-controller")) |
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.
@mfojtik do I need a custom resync
period ?
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 think that sync
will also be trigger by the internal informers resync
period
/retest |
cba3483
to
1bc63ac
Compare
seems like we are still on |
13b73fa
to
7b7b2a7
Compare
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mfojtik, p0lyn0mial The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
/test e2e-aws |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
this PR should unblock me, planing to add encryption controllers to
apiserverclientset