-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Pipeline webhook controllers fail to become leaders #3529
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Milestone
Comments
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Nov 16, 2020
The "webhook" name is too generic and it creates conflicts on leases when other services (like triggers) that use leader election run in same namespace but with different configuration. Fixes tektoncd#3529 Co-authored-by: Matt Moore <mattmoor@vmware.com> Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
4 tasks
afrittoli
added a commit
to afrittoli/triggers
that referenced
this issue
Nov 16, 2020
The "webhook" name is too generic and it creates conflicts on leases when other services (like triggers) that use leader election run in same namespace but with different configuration. See tektoncd/pipeline#3529 for more details. Co-authored-by: Matt Moore <mattmoor@vmware.com> Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
4 tasks
tekton-robot
pushed a commit
to tektoncd/triggers
that referenced
this issue
Nov 16, 2020
The "webhook" name is too generic and it creates conflicts on leases when other services (like triggers) that use leader election run in same namespace but with different configuration. See tektoncd/pipeline#3529 for more details. Co-authored-by: Matt Moore <mattmoor@vmware.com> Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
tekton-robot
pushed a commit
that referenced
this issue
Nov 17, 2020
The "webhook" name is too generic and it creates conflicts on leases when other services (like triggers) that use leader election run in same namespace but with different configuration. Fixes #3529 Co-authored-by: Matt Moore <mattmoor@vmware.com> Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
pritidesai
pushed a commit
to pritidesai/pipeline
that referenced
this issue
Nov 17, 2020
The "webhook" name is too generic and it creates conflicts on leases when other services (like triggers) that use leader election run in same namespace but with different configuration. Fixes tektoncd#3529 Co-authored-by: Matt Moore <mattmoor@vmware.com> Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com> (cherry picked from commit 747f4ba)
4 tasks
tekton-robot
pushed a commit
that referenced
this issue
Nov 17, 2020
The "webhook" name is too generic and it creates conflicts on leases when other services (like triggers) that use leader election run in same namespace but with different configuration. Fixes #3529 Co-authored-by: Matt Moore <mattmoor@vmware.com> Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com> (cherry picked from commit 747f4ba)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
The webhook controllers become leaders and start to work
Actual Behavior
They attempt to acquire a lease, but fail.
This does not always happen, but I see it a lot in local
kind
clusters.Additional Info
The issue manifests itself through defaults missing in tekton resources.
This is caused by the webhooks not being active.
The certificate webhook does not provision the certificate, so the logs are also full of
This is caused by a naming conflict on the leases between pipeline and triggers:
Pipeline and triggers use the same name
webhook
in their config:However they use two different secret names:
The solution for this would be to use a namespaced name in the webhook config,
webhook-pipeline
for pipeline andwebhook-trigger
for triggers.Also related work on knative side: knative/eventing#4530
Thanks @mattmoor for your help tracking this down!
The text was updated successfully, but these errors were encountered: