You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace the obsolete profiling.enable ConfigMap key with
runtime-profiling (enabled/disabled). Remove the K_METRICS_CONFIG
controller section since the controller now uses ConfigMap-based
observability via the eventing adapter. Document that controller
profiling requires a pod restart as the adapter reads config once
at startup. Add CONFIG_OBSERVABILITY_NAME prerequisite for the
webhook.
Fixes#2633
Signed-off-by: Akshay Pant <akpant@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
The watcher picks up the ConfigMap change immediately without a restart.
68
-
69
-
### Webhook
50
+
### Component-specific prerequisites
70
51
71
-
The **webhook** (`pipelines-as-code-webhook`) also uses `sharedmain` and supports
72
-
dynamic toggling via the same ConfigMap. Unlike the watcher, the webhook does not run
73
-
its own health probe server, so `PAC_DISABLE_HEALTH_PROBE` is not required.
52
+
| Component | Extra step required |
53
+
| --- | --- |
54
+
|**watcher**| Set `PAC_DISABLE_HEALTH_PROBE=true` — otherwise a port conflict on 8080 causes the profiling server to shut down (see below). Picks up ConfigMap changes without a restart. |
55
+
|**controller**| Profiling must be enabled in the ConfigMap **before** the pod starts — a pod restart is required after any change. The eventing adapter framework reads the profiling config once at startup and does not watch for ConfigMap updates. |
56
+
|**webhook**| Set `CONFIG_OBSERVABILITY_NAME=pipelines-as-code-config-observability` — the webhook Deployment does not set this by default and falls back to `config-observability`, which does not exist in the PAC namespace. Picks up ConfigMap changes without a restart. |
74
57
75
-
The webhook deployment does not set `CONFIG_OBSERVABILITY_NAME` by default, so it
76
-
falls back to looking for a ConfigMap named `config-observability`, which does not
77
-
exist in the PAC namespace. Set the environment variable first:
58
+
For the watcher:
78
59
79
60
```bash
80
-
kubectl set env deployment/pipelines-as-code-webhook \
61
+
kubectl set env deployment/pipelines-as-code-watcher \
0 commit comments