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

feat: Add Pdb struct and PdbBuilder #653

Merged
merged 25 commits into from
Sep 25, 2023
Merged

feat: Add Pdb struct and PdbBuilder #653

merged 25 commits into from
Sep 25, 2023

Conversation

sbernauer
Copy link
Member

@sbernauer sbernauer commented Sep 18, 2023

Description

Part of stackabletech/issues#435

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

Edit tasklist title
Beta Give feedback Tasklist Author, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. Changes are OpenShift compatible
    Options
  2. CRD changes approved - In ADR
    Options
  3. Integration tests passed (for non trivial changes)
    Options

Reviewer

Edit tasklist title
Beta Give feedback Tasklist Reviewer, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. Code contains useful comments
    Options
  2. (Integration-)Test cases added
    Options
  3. Documentation added or updated
    Options
  4. Changelog updated
    Options
  5. Cargo.toml only contains references to git tags (not specific commits or branches)
    Options

Acceptance

Edit tasklist title
Beta Give feedback Tasklist Acceptance, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. Feature Tracker has been updated
    Options
  2. Proper release label has been added
    Options

src/role_utils.rs Outdated Show resolved Hide resolved
src/role_utils.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
@sbernauer sbernauer marked this pull request as ready for review September 19, 2023 13:46
@sbernauer sbernauer self-assigned this Sep 21, 2023
Copy link
Member

@Techassi Techassi left a comment

Choose a reason for hiding this comment

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

I would like to see some doc comments for the newly introduced Pdb and PdbBuilder structs, as well as all associated functions of the builder.

We can also think about renaming Pdb to PodDisruptionBudget and PdbBuilder to PodDisruptionBudgetBuilder. I think we currently do not abbreviate k8s terms in operator-rs.

src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/role_utils.rs Outdated Show resolved Hide resolved
@stackabletech stackabletech deleted a comment from Techassi Sep 22, 2023
@stackabletech stackabletech deleted a comment from Techassi Sep 22, 2023
@sbernauer
Copy link
Member Author

Fixed the abbreviation. Only thing missing are docs

Copy link
Member

@Techassi Techassi left a comment

Choose a reason for hiding this comment

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

Only some minor nits, otherwise lgtm.

src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Outdated Show resolved Hide resolved
src/builder/pdb.rs Show resolved Hide resolved
src/commons/pdb.rs Outdated Show resolved Hide resolved
src/commons/pdb.rs Show resolved Hide resolved
@sbernauer
Copy link
Member Author

@Techassi feedback addressed, please have another look

@sbernauer
Copy link
Member Author

Thanks a lot for the review!

@sbernauer sbernauer added this pull request to the merge queue Sep 25, 2023
Merged via the queue into main with commit 44f5201 Sep 25, 2023
17 checks passed
@sbernauer sbernauer deleted the feat/support-pdb branch September 25, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants