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

Postgres replica configuration ignored on OpenShift deployments for TektonResult

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Operator
    • None

      Description of problem:

      When configuring postgres replicas via options.statefulSets in the  TektonConfig CR on OpenShift, the configuration is ignored and postgres remains at 1 replica.Example Configuration (not working on OpenShift):

        result:
          disabled: false
          is_external_db: false
          options:
            statefulSets:
              tekton-results-postgres:
                spec:
                  replicas: 2  # ← IGNORED on OpenShift
      

       

       

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

      Steps to Reproduce

      1. Deploy Tekton Operator on OpenShift
      2. Create a TektonConfig/TektonResult CR with postgres replica configuration:
       result:
        disabled: false
        is_external_db: false
        options:
          statefulSets:
            tekton-results-postgres:
              spec:
                replicas: 2
      1. Check the postgres StatefulSet.

      Actual results:

      The postgres StatefulSet is created with only 1 replica (default):

      
      

      *NAME                      READY   AGE
      tekton-results-postgres   1/1     5m*

       

      Expected results:

      {}{}

      The postgres StatefulSet should be created with 2 replicas as configured:

       

      NAME                      READY   AGE
      tekton-results-postgres   2/2     5m

       

       

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

      Given a TektonConfig on OpenShift with postgres replica configuration, When is_external_db: false and options.statefulSets.tekton-results-postgres.spec.replicas is set to N, Then the postgres StatefulSet should be created/updated with N replicas.

      Definition of Done:

      Build Details:

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

       

       *

              rh-ee-abghosh Abhishek Ghosh
              rh-ee-abghosh Abhishek Ghosh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: