Skip to content

[Merged by Bors] - Adapt resource structs to work with struct merging code #392

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

Closed
wants to merge 6 commits into from

Conversation

soenkeliebau
Copy link
Member

Description

This PR makes a few small changes to the resources structs so that they work with the config merging code.
Most notably it changes all Atomic values to options and adds the required Derive macros to make the Resources struct mergeable.

This might be breaking depending on how downstream code uses the structs. Serialization and Deserialization should not be affected (apart from being more lenient due to values being optional now).

If downstream code simply uses the convenience functions on the structs to obtain derived ResourceRequirements and PersistentVolumeClaim objects this shouldn't require any changes as those inferfaces have been kept stable.

Review Checklist

  • Code contains useful comments
  • (Integration-)Test cases added (or not applicable)
  • Documentation added (or not applicable)
  • Changelog updated (or not applicable)
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Once the review is done, comment bors r+ (or bors merge) to merge. Further information

Adds test to check correct handling of selectors when creating pvcs.

Signed-off-by: Sönke Liebau <[email protected]>
Signed-off-by: Sönke Liebau <[email protected]>
Clippy

Signed-off-by: Sönke Liebau <[email protected]>
@soenkeliebau
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request May 5, 2022
## Description

This PR makes a few small changes to the resources structs so that they work with the config merging code.
Most notably it changes all Atomic values to options and adds the required Derive macros to make the Resources struct mergeable.

This might be breaking depending on how downstream code uses the structs. Serialization and Deserialization should not be affected (apart from being more lenient due to values being optional now).

If downstream code simply uses the convenience functions on the structs to obtain derived ResourceRequirements and PersistentVolumeClaim objects this shouldn't require any changes as those inferfaces have been kept stable.
@bors
Copy link
Contributor

bors bot commented May 5, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Adapt resource structs to work with struct merging code [Merged by Bors] - Adapt resource structs to work with struct merging code May 5, 2022
@bors bors bot closed this May 5, 2022
@bors bors bot deleted the feat/merge_resources branch May 5, 2022 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants