-
Notifications
You must be signed in to change notification settings - Fork 981
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
Fix resource constraints #2735
Fix resource constraints #2735
Conversation
@dmotte thanks! Could you provide also unit tests that cover this "new" behavior so I could also try them on the main branch and see what doesn't work? This would be a great improvement to this PR. |
@FxKu done 🙂 I hope it's ok |
Seems to me that only the schema validation needs to change. It's still good though to add a "0" example to the unit test. |
Thanks. Can you also update these files with the new validation pattern: |
…l and pkg/apis/acid.zalan.do/v1/crds.go
👍 |
👍 |
The documentation about
postgres_pod_resources
says that you can disable the defaults by setting them to zero OR empty string:Source:
postgres-operator/docs/reference/operator_parameters.md
Lines 570 to 604 in 2582b93
But it's not currently possible to set them to empty string, due to the regular expressions in
charts/postgres-operator/crds/operatorconfigurations.yaml
.Also, the
enforceMinResourceLimits
function currently supports only the empty string case, which is impossible to use due to the aforementioned regexes.This PR aims to fix these two issues 🙂