Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPG-527 - Fix pg-db cluster.yaml resources placeholder syntax error #304

Merged
merged 5 commits into from
Mar 22, 2024

Conversation

TAbhay
Copy link
Contributor

@TAbhay TAbhay commented Mar 17, 2024

While installing the pg-db cluster using helm, instance was not able to allocation resources.

Error: client.go:134: [debug] creating 2 resource(s) error: installation failed: 1 error occurred: * perconapgcluster.pgv2.percona.com "pg-db" is invalid: [spec.instances[0].resources.limits.cpu: invalid value: "$instance.resourc": spec.instances[0].resources.limits.cpu in body should match '^(\+|-)?(([0-9]+(\.[0-9])?)|(\.[0-9]+))(([kmgtpe]i)|[numkmgtpe]|([ee](\+|.[0-9])?)|(\.[0-9]+))))?$', spec.instances[0].resources.limits.memory: invalid value: "$instance.resources.limits.memory": spec.instances.limits.memory in body should match '^(\+|-)?(([0-9]+(\.[0-9])?)|(\.[0-9]+))(([kmgtpe]i)|[numkmgtpe]|([ee](\+|-)?(([0-9]+(\.[0-9])?)|(\., spec.backups.pgbackrest.repos: required value]

Reason: Placeholder syntax error in cluster.yaml of pg-db/charts/templates/cluster.yaml

Here, I have attached the screenshots for issue & fix.
Issue:
issue
Fix:
fix

@it-percona-cla
Copy link

it-percona-cla commented Mar 17, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@tplavcic tplavcic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please bump the chart version so that the tests can pass. Thanks!

@TAbhay
Copy link
Contributor Author

TAbhay commented Mar 18, 2024

@tplavcic Please review it. Thank you 🙂

@tplavcic tplavcic changed the title Fixed Pg-db cluster.yaml placeholder syntax error K8SPG-527 - Fixed Pg-db cluster.yaml placeholder syntax error Mar 22, 2024
@tplavcic tplavcic changed the title K8SPG-527 - Fixed Pg-db cluster.yaml placeholder syntax error K8SPG-527 - Fix pg-db cluster.yaml resources placeholder syntax error Mar 22, 2024
@tplavcic tplavcic merged commit 9a2532b into percona:main Mar 22, 2024
2 checks passed
@tplavcic
Copy link
Member

@TAbhay Thank you very much for the contribution! It is now merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants