Closed afrittoli closed 2 years ago
Manually specifying spec.clientConfig.url
might be a workaround for now based on https://github.com/tektoncd/triggers/blob/main/pkg/apis/triggers/v1alpha1/cluster_interceptor_types.go#L71
Deleting the cluster interceptor, restarting the event listener and then recreating the cluster interceptor seems to work, the service is up and running now - I'll keep an eye on it. Once the patch release is ready I will try the upgrade from v0.20.1 to v0.20.2.
Interceptor crashed again:
{
"level": "fatal",
"ts": "2022-07-06T17:06:52.980Z",
"logger": "eventlistener",
"caller": "v2/main.go:205",
"msg": "Start returned an error",
"error": "Timed out waiting on CaBundle to available for clusterInterceptor: empty caBundle in clusterInterceptor spec",
"stacktrace": "github.com/tektoncd/triggers/vendor/knative.dev/eventing/pkg/adapter/v2.MainWithInformers\n\tgithub.com/tektoncd/triggers/vendor/knative.dev/eventing/pkg/adapter/v2/main.go:205\ngithub.com/tektoncd/triggers/vendor/knative.dev/eventing/pkg/adapter/v2.MainWithEnv\n\tgithub.com/tektoncd/triggers/vendor/knative.dev/eventing/pkg/adapter/v2/main.go:105\ngithub.com/tektoncd/triggers/vendor/knative.dev/eventing/pkg/adapter/v2.MainWithContext\n\tgithub.com/tektoncd/triggers/vendor/knative.dev/eventing/pkg/adapter/v2/main.go:80\nmain.main\n\tgithub.com/tektoncd/triggers/cmd/eventlistenersink/main.go:69\nruntime.main\n\truntime/proc.go:255"
}
Tried the following:
apiVersion: triggers.tekton.dev/v1alpha1
kind: ClusterInterceptor
metadata:
name: build-id
spec:
clientConfig:
url: http://build-id-interceptor.tekton-ci.svc:80/buildid
We'll see if this setup lasts
Sometimes later, the caBundle
is back:
$ ky get clusterinterceptor/build-id
apiVersion: triggers.tekton.dev/v1alpha1
kind: ClusterInterceptor
metadata:
creationTimestamp: "2022-07-06T17:12:26Z"
generation: 2
name: build-id
resourceVersion: "1628385105"
uid: d69534fb-bfcc-4f05-af67-b6aa300aae84
spec:
clientConfig:
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM5akNDQXB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2Ymkxd2FYQmxiR2x1WlhNdWMzWmpna1IwWld0MGIyNHRkSEpwWjJkbGNuTXQKWTI5eVpTMXBiblJsY21ObGNIUnZjbk11ZEdWcmRHOXVMWEJwY0dWc2FXNWxjeTV6ZG1NdVkyeDFjM1JsY2k1cwpiMk5oYkRBS0JnZ3Foa2pPUFFRREFnTklBREJGQWlFQWxvdSttQVVGQU5yTDAvRzdmMEhTRWg0U0FBU25LaDUxClpUZTA3ZHJkQWV3Q0lCaUFjczlhL2NWaEtJbEd6Mmo0WkF1UnNNNUgzZnpLL0NBQU5Ec2ZnSUIvCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
url: http://build-id-interceptor.tekton-ci.svc:80/buildid
status:
address:
url: http://build-id-interceptor.tekton-ci.svc:80/buildid
For some reason the core interceptor was restarted:
tekton-triggers-controller-7b5fbd8886-thx5k 1/1 Running 0 28h
tekton-triggers-core-interceptors-6d44899696-n8tr5 1/1 Running 0 26m
tekton-triggers-webhook-54c696b579-6zhh6 1/1 Running 0 3h20m
I wonder if the process becomes overloaded and is kiled by k8s? Just a wild guess
The good news is that, regardless of the caBundle
, the event listener keeps working
Expected Behavior
After installing v0.20.1 I can continue to use my non-HTTPs custom cluster interceptor
Actual Behavior
It looks like triggers reconciles a
caBundle
in the interceptor definition, which results in:I manually delete the
caBundle
from my interceptor and things started working again for some time. After a while things stopped working again, and I realised that thecaBundle
was back in. I edited the interceptor again. Things started working again and then stopped working. This time nocaBundle
in the interceptor, but the event listener pod is in crash loop:Steps to Reproduce the Problem
Interceptor YAML:
Additional Info