-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Replace watch with builder.ControllerManagedBy #17028
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
cannot start job - please talk to whoever's in charge of your Werft installation |
cannot start job - please talk to whoever's in charge of your Werft installation |
27ea764
to
454d502
Compare
670308e
to
9a6fe23
Compare
d3b0724
to
000da2a
Compare
err = ctrl.NewControllerManagedBy(mgr). | ||
Named("pod-watcher"). | ||
For(&corev1.Pod{}, builder.WithPredicates(filterPredicate)). | ||
WithOptions(controller.Options{MaxConcurrentReconciles: 1}). |
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.
If we set RequeueAfter
with MaxConcurrentReconciles
> 1, the retry does not respect the wait time.
Now that we don't sleep in the reconcile loop, setting MaxConcurrentReconciles
is not a problem
42e5c8d
to
72c0f31
Compare
@@ -258,11 +258,6 @@ func updateLabel(label string, add bool, nodeName string, client client.Client) | |||
return err | |||
} | |||
|
|||
_, hasLabel := node.Labels[label] |
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 not checking the value of the label and the check was done before calling this function
72c0f31
to
13de063
Compare
Signed-off-by: Manuel de Brito Fontes <[email protected]>
ccb426c
to
9b199da
Compare
Description
Switch to a controller to not use the low-level watch abstraction.
A side effect of this change is the reduction in ~20s to add the required node labels
Release Notes
Build Options:
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh