fix(pdb): correct test assertions, pdbName call, and update docs - #304
Open
erkules wants to merge 1 commit into
Open
fix(pdb): correct test assertions, pdbName call, and update docs#304erkules wants to merge 1 commit into
erkules wants to merge 1 commit into
Conversation
Contributor
|
| Filename | Overview |
|---|---|
| internal/controller/valkeycluster_pdb.go | Moves PDB reconciliation to per-shard resources, adds legacy cleanup, and labels managed PDBs with the shard index. |
| internal/controller/valkeycluster_pdb_test.go | Updates PDB expectations for per-shard names, selectors, and legacy migration. |
| docs/valkeycluster.md | Documents the new per-shard PDB behavior and disabled cleanup semantics. |
Reviews (3): Last reviewed commit: "fix(pdb): correct test assertions, pdbNa..." | Re-trigger Greptile
erkules
force-pushed
the
feature-pdb-pershard
branch
from
July 12, 2026 02:34
f28cc22 to
621c163
Compare
- Fix pdbName call in test to include shardIndex argument - Change test expectation from MaxUnavailable to MinAvailable - Add assertion for LabelShardIndex selector in PDB test - Update docs/valkeycluster.md to describe per-shard PDB with minAvailable: 1 instead of maxUnavailable: 1 Signed-off-by: Erkan Yanar <erkan.yanar@linsenraum.de>
erkules
force-pushed
the
feature-pdb-pershard
branch
from
July 12, 2026 04:07
621c163 to
6125a8b
Compare
Collaborator
|
Rather than changing this for everyone, I would rather provide an API on the podDisruptionBudget to allow the user to decide for themselves. We should continue the discussion on the issue you raised: |
Collaborator
|
@erkules Can we close this out? From the linked issue we have decided not to go with this approach. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR closes <Issue #303 >
Summary
Features / Behaviour Changes
Instead of creating a single cluster-wide PodDisruptionBudget, create one PDB per shard.
use minAvailable: 1 isnstead of maxUnvailable
Implementation
Limitations
It is an improvement. Next step is to make pdbs configurable
Testing
All tests done
Checklist
Before submitting the PR make sure the following are checked:
pre-commit run --all-filesor hooks on commit)