Skip to content

feat: make PDB configurable - #3837

Merged
jsilvela merged 17 commits into
cloudnative-pg:mainfrom
achanda:remove-pdb
Mar 12, 2024
Merged

jsilvela merged 17 commits into
cloudnative-pg:mainfrom
achanda:remove-pdb

Conversation

@achanda

@achanda achanda commented Feb 19, 2024 •

Copy link
Copy Markdown
Contributor

Adds a new field to the CRD allowing the deactivation of the default
Pod Disruption Budgets, thereby allowing primary instances to be
evicted during maintenance operations. While this could entail
temporary service degradation, there are use cases where this is
an acceptable tradeoff.

Closes #2570

@github-actions github-actions Bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.21 labels Feb 19, 2024
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@achanda

achanda commented Feb 19, 2024

Copy link
Copy Markdown
Contributor Author

Putting this up for an initial review to make sure this is the right approach. cc @gbartolini

Things to figure out:

  1. Will this affect existing clusters that have this flag changed to false?
  2. Tests

@gbartolini

gbartolini commented Feb 26, 2024 •

Copy link
Copy Markdown
Contributor

I think in the longer term we need to understand how this feature will replace for good the nodeMaintenanceWindow option. Can you please rename the option enablePDB?

I will leave the other maintainers to check whether yours is the right approach on the code. If they think it is fine, could you then please integrate the documentation? Thanks.

@armru
armru force-pushed the remove-pdb branch 2 times, most recently from fa796b3 to af1a7e4 Compare March 5, 2024 11:04
@armru

armru commented Mar 5, 2024

Copy link
Copy Markdown
Member

/test limit=local

@github-actions

github-actions Bot commented Mar 5, 2024

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the ok to merge 👌 This PR can be merged label Mar 5, 2024
@leonardoce

Copy link
Copy Markdown
Contributor

I agree with the implementation, but I think we should clarify better in the documentation the intersection between the maintenance window stuff and enablePDB.

@gbartolini gbartolini self-assigned this Mar 6, 2024
@gbartolini gbartolini changed the title feat: add an option to drop PDBs feat: make PDB configurable Mar 6, 2024
@gbartolini gbartolini mentioned this pull request Mar 6, 2024
2 tasks done
gbartolini and others added 3 commits March 11, 2024 15:47
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Abhishek Chanda <[email protected]>
Signed-off-by: Jaime Silvela <[email protected]>
Comment thread docs/src/kubernetes_upgrade.md Resolved
@jsilvela

Copy link
Copy Markdown
Contributor

/test limit=local feature_type=maintenance

@github-actions

Copy link
Copy Markdown
Contributor

@jsilvela

Copy link
Copy Markdown
Contributor

/test limit=local feature_type=maintenance

@github-actions

Copy link
Copy Markdown
Contributor

@jsilvela

Copy link
Copy Markdown
Contributor

/test limit=local feature_type=maintenance

@github-actions

Copy link
Copy Markdown
Contributor

Signed-off-by: Jaime Silvela <[email protected]>
@jsilvela

Copy link
Copy Markdown
Contributor

/test limit=local feature_type=maintenance

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added the ok to merge 👌 This PR can be merged label Mar 12, 2024
@jsilvela

Copy link
Copy Markdown
Contributor

/ok-to-merge

@jsilvela
jsilvela merged commit 3d654b3 into cloudnative-pg:main Mar 12, 2024
@achanda
achanda deleted the remove-pdb branch March 12, 2024 15:54
@pgodowski

Copy link
Copy Markdown
Contributor

Can I please ask to backport this to 1.22 as well as per earlier comment #3837 (comment) ?

@jsilvela

mnencia pushed a commit that referenced this pull request Aug 23, 2024
Adds a new field to the CRD allowing the deactivation of the default
Pod Disruption Budgets, thereby allowing primary instances to be
evicted during maintenance operations. While this could entail
temporary service degradation, there are use cases where this is
an acceptable tradeoff.

Closes #2570

Signed-off-by: Abhishek Chanda <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Gabriele Bartolini <[email protected]>
Signed-off-by: Jaime Silvela <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Gabriele Bartolini <[email protected]>
Co-authored-by: Jaime Silvela <[email protected]>
(cherry picked from commit 3d654b3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not backport This PR must not be backported - it will be in the next minor release ok to merge 👌 This PR can be merged ready to test 🐘

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Allow configurable PDBs

7 participants