operator
operator copied to clipboard
How to set the TEKTON_RESULTS_API_SERVICE value of the watcher deployment via the operator config
The TEKTON_RESULTS_API_SERVICE env. value in the watcher deployment is set to the fixed value tekton-results-api-service.tekton-pipelines.svc.cluster.local:8080. This won't work if you use a custom k8s cluster domain name. Is there a possibility to override this value with the Tekton operator that deploys the Tekton results parts?
hi @CarstenGSD Apologies for the delayed response.
You can override almost any setting through the TektonConfig resource. . You can use this mechanism to override the TEKTON_RESULTS_API_SERVICE environment variable:
apiVersion: operator.tekton.dev/v1alpha1
kind: TektonConfig
metadata:
name: config
spec:
result:
options:
deployments:
tekton-results-watcher:
spec:
template:
spec:
containers:
- name: watcher
env:
- name: TEKTON_RESULTS_API_SERVICE
value: "your-api-service-name.namespace.svc.cluster.local:port"