operator icon indicating copy to clipboard operation
operator copied to clipboard

How to set the TEKTON_RESULTS_API_SERVICE value of the watcher deployment via the operator config

Open CarstenGSD opened this issue 1 year ago • 1 comments

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?

CarstenGSD avatar Dec 20 '24 13:12 CarstenGSD

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"

jkhelil avatar Apr 16 '25 13:04 jkhelil