-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
1
-
False
-
-
False
-
-
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
- Deploy Tekton Operator on OpenShift
- Create a TektonConfig/TektonResult CR with postgres replica configuration:
result: disabled: false is_external_db: false options: statefulSets: tekton-results-postgres: spec: replicas: 2
- 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):