Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-10235

PipelineRun cache Parameter Ignored by Resolver when set to never

XMLWordPrintable

      Description of problem:

      When a PipelineRun explicitly sets the cache parameter to never, the resolver should bypass the cache and fetch the resource directly. However, if the bundleresolver-config has default-cache-mode set to always, the resolver continues to serve the resource from the cache.

      Prerequisites (if any, like setup, operators/versions):

      OSP 1.21

      pipelines v1.6.0

      Steps to Reproduce

      • Update the TektonConfig to set the bundle resolver to always cache.
      bundleresolver-config:
       data:
        default-cache-mode: always
        ttl: 2m
      • Create a PipelineRun that explicitly attempts to bypass the cache using the cache: never.
       spec:
         pipelineRef:
           resolver: bundles
         params:
          name: cache
          value: never
      

       

      • Observe the controller logs during execution.

      Actual results:{}

      {"severity":"info","timestamp":"2026-01-09T06:48:42.122Z","logger":"controller","caller":"cache/cache.go:96","message":"Cachehit","commit":"b69b57da43d37038b1447b346ad96a88b29d3ccb","knative.dev/traceid":"f3d44c02-d6e7-49c6-81f2-b500be1534c1","knative.dev/key":"test/bundles-645f1330c5d5a901be5c33a8b97a6045","key":"4a9a17f361970bb91cea8516394e45a7f960849255aea2939c89a856c4e60dcd"}

      Expected results:

      The controller should recognize the cache: never parameter as a high-priority override. It should fetch the bundle from the registry and either skip the cache check or force a refresh. Cache Miss should be logged for this request.

      Reproducibility (Always/Intermittent/Only Once):

      Always

       *

              Unassigned Unassigned
              rhn-support-sselvan Sri Vignesh Selvan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: