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

PipelineRuns, TaskRuns & enforcedConfigLevel fields getting added inside namespaces block when setting namespace level config for tektonpruner

XMLWordPrintable

      Description of problem:

      PipelineRuns, TaskRuns & enforcedConfigLevel fields getting added inside namespaces block when setting namespace level config for tektonpruner

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

      Steps to Reproduce

      1. Install 1.21 OSP
      2. Disable old pruner & enable tektonpruner
      3. Set enforcedConfigLevel from global to namespace
      4. Set fields successfulHistoryLimit, ttlSecondsAfterFinished in namespace block for test namespace

      Actual results:

      PipelineRuns, TaskRuns & enforcedConfigLevel fields getting added inside namespaces block when setting namespace level config.

      enforcedConfigLevel shouldn't be updating again under namespace block as we are controlling at root level.

      tektonpruner:
          disabled: false
          global-config:
            enforcedConfigLevel: namespace
            failedHistoryLimit: 7
            historyLimit: 10
            namespaces:
              dev:
                PipelineRuns: null
                TaskRuns: null
                enforcedConfigLevel: null
                failedHistoryLimit: null
                historyLimit: null
                successfulHistoryLimit: 3
                ttlSecondsAfterFinished: 300
            successfulHistoryLimit: null
            ttlSecondsAfterFinished: 6000
       

      Expected results:

      The above configured fields should be set and other default fields should be set to null

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              rh-ee-shubbhar Shubham Bhardwaj
              rh-ee-smanthin Sai Raju Manthina
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: