fix: add UpdatableClusterSpec to the podConfig hash#2315
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label main-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Graphite Automations"Add anton/matt/sergey/kristina as reviwers on operator PRs" took an action on this PR • (03/04/26)3 reviewers were added to this PR based on Anton Bykov's automation. |
| } | ||
|
|
||
| func NewPodFactory(container *weka.WekaContainer, nodeInfo *discovery.DiscoveryNodeInfo) *PodFactory { | ||
| func NewPodFactory(container *weka.WekaContainer, nodeInfo *discovery.DiscoveryNodeInfo, cluster *weka.WekaCluster) *PodFactory { |
There was a problem hiding this comment.
maybe let's just pass podConfigHash string param here directly ?
I see cluster is used only for this call later: PodConfigHashForCluster(f.cluster)
54e6bc4 to
0a95ca0
Compare
d3da503 to
fda9371
Compare
0a95ca0 to
4c2eb1a
Compare
fda9371 to
5ae7f5f
Compare
4c2eb1a to
486b6d3
Compare
5ae7f5f to
8f6b3af
Compare
486b6d3 to
5810044
Compare
8f6b3af to
05be919
Compare
5810044 to
c35862f
Compare
05be919 to
a98748c
Compare

TL;DR
Enhanced pod configuration hash calculation to include cluster specification data, ensuring pods are rotated when cluster configuration changes.
What changed?
PodConfigHash()toPodConfigHashForCluster()that accepts a cluster parameter and includes cluster specification in the hash calculationUpdatableClusterSpecstruct to the resources package and moved it from the wekacluster controllerPodFactoryto store a cluster reference and use it for configuration hash generationNewPodFactorycalls to pass the cluster parameterWhy make this change?
This change ensures that pods are properly rotated when cluster configuration changes that affect pod behavior.