Configure Enhancement Features via TektonConfig
This guide shows how to manage enhancement feature configuration through TektonConfig using spec.pipeline.options.configMaps.
Namespace Note: Throughout this guide,
<tekton-pipelines>is used as a placeholder for yourTektonnamespace. Replace it with your actual namespace name. The default installation usestekton-pipelinesnamespace.
TOC
PrerequisitesSteps1. Update TektonConfig withspec.pipeline.options.configMaps2. Parameter reference and defaults3. Verify ConfigMap update4. Restart the controller for startup-loaded settingsFAQI updated TektonConfig, but the effective config did not change. What should I check?Prerequisites
- Tekton Operator is installed.
TektonConfigresource exists (usually namedconfig).- You can edit
TektonConfigin your cluster.
Steps
1. Update TektonConfig with spec.pipeline.options.configMaps
The options structure follows the same pattern as described in Adjusting Optional Configuration Items of Subcomponents.
Use a TektonConfig patch like this:
2. Parameter reference and defaults
PAC webhook registration reads the public webhook URL from pipelines-as-code-info.data.controller-url. Configure that value through the PAC component options; see Get the PAC Webhook URL.
To use automatic webhook registration, set each PAC Repository spec.git_provider.type to github or gitlab. Repositories without a supported type are skipped, with the reason recorded as a Repository Event and status annotations.
Setting pac-webhook-registration.enabled to false is not only a pause for future registrations. It also removes Git provider webhooks that were previously created or updated by the enhancement controller. Set it back to true to let the controller reconcile eligible PAC Repository resources again and recreate or update their webhooks.
For active Repository resources, cleanup must complete before the controller removes the managed webhook annotations and finalizer. If credentials are missing or the provider API is temporarily unreachable, fix the credential or provider access and the controller retries. Deleting a Repository is different: provider cleanup is best-effort so the Kubernetes finalizer can be removed after the cleanup warning is recorded.
3. Verify ConfigMap update
After updating TektonConfig, check whether the managed ConfigMap has been reconciled:
The Tekton Operator applies the configuration from TektonConfig. Do not update the managed Deployment or ConfigMap directly because those changes can be overwritten by the next reconciliation.
4. Restart the controller for startup-loaded settings
pac-webhook-registration.* settings are hot-reloaded after the ConfigMap is updated. template-render.* settings are loaded when the enhancement controller starts, so restart tektoncd-enhancement-controller after changing template-render.details-url-template or template-render.time-zone:
FAQ
I updated TektonConfig, but the effective config did not change. What should I check?
Check in this order:
TektonConfigwas updated successfully.tektoncd-enhancement-configin namespace<tekton-pipelines>has the expecteddata.config.- The Tekton Operator has reconciled the latest
TektonConfig. - If you changed any
template-render.*setting,tektoncd-enhancement-controllerwas restarted after the ConfigMap update.