kladiv opened a new issue, #108: URL: https://github.com/apache/openserverless/issues/108
- [X] I have searched the [issues](https://github.com/apache/openserverless/issues) of this repository and believe that this is not a duplicate. ### Ⅰ. Issue Description Operator seems not take in consideration the configured postgres component `--replicas` setting ### Ⅱ. Describe what happened Run `ops config postgres --replicas=1` to make Operator deploy only primary Postgres instance) But the Operator still deploys 2 replicas (1 primary, 1 standby) ``` nuvolaris-postgres-1-0 nuvolaris-postgres-2-0 ``` ### Ⅲ. Describe what you expected to happen Operator should take in consideration the `--replicas` config ### Ⅳ. How to reproduce it (as minimally and precisely as possible) 1. ops config postgres --replicas=1 2. deploy openserverless 3. kubectl get pods -n nuvolaris -l app=nuvolaris-postgres ### Ⅴ. Anything else we need to know? The issue is probabily related to this line https://github.com/apache/openserverless-operator/blob/main/nuvolaris/util.py#L452 Maybe it should be: ```diff - cfg.get('postgres.admin.replicas') + cfg.get('postgres.replicas') ``` ### Ⅵ. Environment: - K8S Runtime and version: k3s v1.29.3+k3s1 - OPS CLI version: 0.1.0-2409121919.dev -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
