refactor: Remove serverConfigHash from ValkeyNode - #381
Conversation
Signed-off-by: Joseph Heyburn <jdheyburn@gmail.com>
|
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (7)
Included review availability: Your plan includes up to 2 reviews per rolling hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe PR removes ChangesConfiguration roll hash flow
Sequence Diagram(s)sequenceDiagram
participant ValkeyClusterController
participant ValkeyNodeController
participant ConfigRenderer
participant PodTemplate
participant WorkloadRevision
ValkeyClusterController->>ValkeyNodeController: reconcile ValkeyNode without ServerConfigHash
ValkeyNodeController->>ConfigRenderer: render node configuration and TLS
ConfigRenderer-->>ValkeyNodeController: return derived configuration hash
ValkeyNodeController->>PodTemplate: set configHashKey annotation for parent-managed nodes
ValkeyClusterController->>WorkloadRevision: authorize sequential rollout
WorkloadRevision-->>ValkeyClusterController: return desired workload revision
Merge Risk: ⚪ Minimal · up to This refactor removes duplicated internal state while preserving configuration rollout behavior; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)Error: build linters: plugin(logcheck): plugin "logcheck" not found Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
bjosv
left a comment
There was a problem hiding this comment.
LGTM! The added testcase with the old render logic was smart.
…tree-remove-serverconfighash Signed-off-by: Joseph Heyburn <jdheyburn@gmail.com>
This PR closes #264
Summary
This is a refactor to remove
serverConfigHashfrom ValkeyNode.Since #338 introduced a
WorkloadRevisionto ValkeyNode, there is duplicated functionality which means we no longer need aserverConfigHash.Features / Behaviour Changes
Implementation
Simply removing a field that has had its function duplicated elsewhere.
spec.serverConfigMapNamespec.workloadRevisionremains the single roll-control fieldLimitations
During a mixed state, its possible that the operator would cause some rolls and failovers, however once CRDs and operator is synced up then this is not expected.
Testing
Beyond unit tests, tested on a kind cluster to verify that:
Checklist
Before submitting the PR make sure the following are checked:
pre-commit run --all-filesor hooks on commit)