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

[COR-205] Add resources to CoreDB spec #122

Merged
merged 18 commits into from
Feb 17, 2023
Merged

[COR-205] Add resources to CoreDB spec #122

merged 18 commits into from
Feb 17, 2023

Conversation

ianstanton
Copy link
Member

@ianstanton ianstanton commented Feb 16, 2023

Add resources spec value. Use this value to set resource values on postgres container. Also add default values.

@ianstanton ianstanton marked this pull request as ready for review February 16, 2023 20:30
@ianstanton
Copy link
Member Author

test::functional_test_delete_namespace seems to be failing in CI. Passes locally...

type: object
requests:
additionalProperties:
description: |-
Copy link
Member Author

Choose a reason for hiding this comment

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

These descriptions can cause unnecessary bloat in our CRD. Go's controller-gen has a maxDescLen flag that you can set to 0 to disable these descriptions. There doesn't seem to be an equivalent in kube-derive at the moment.

It's fine to include them at the moment, but wanted to call this out in case we need to trim things down in the future.

Comment on lines +9 to +15
let limits: BTreeMap<String, Quantity> = BTreeMap::from([
("cpu".to_owned(), Quantity("2".to_string())),
("memory".to_owned(), Quantity("2Gi".to_string())),
]);
let requests: BTreeMap<String, Quantity> = BTreeMap::from([
("cpu".to_owned(), Quantity("500m".to_string())),
("memory".to_owned(), Quantity("512Mi".to_string())),
Copy link
Member Author

Choose a reason for hiding this comment

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

@sjmiller609 let me know your thoughts on these default values

@ianstanton ianstanton changed the title Add resources to CoreDB spec [COR-205] Add resources to CoreDB spec Feb 17, 2023
@ianstanton ianstanton deleted the cor-205 branch February 17, 2023 13:52
sjmiller609 pushed a commit that referenced this pull request Dec 5, 2023
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.

2 participants