Skip to content

fix: add UpdatableClusterSpec to the podConfig hash#2315

Closed
rugggger wants to merge 1 commit into02-26-fix_rotate_pods_on_pod-config_changefrom
03-04-fix_add_updatableclusterspec_to_the_podconfig_hash
Closed

fix: add UpdatableClusterSpec to the podConfig hash#2315
rugggger wants to merge 1 commit into02-26-fix_rotate_pods_on_pod-config_changefrom
03-04-fix_add_updatableclusterspec_to_the_podconfig_hash

Conversation

@rugggger
Copy link
Contributor

@rugggger rugggger commented Mar 4, 2026

TL;DR

Enhanced pod configuration hash calculation to include cluster specification data, ensuring pods are rotated when cluster configuration changes.

What changed?

  • Modified PodConfigHash() to PodConfigHashForCluster() that accepts a cluster parameter and includes cluster specification in the hash calculation
  • Added UpdatableClusterSpec struct to the resources package and moved it from the wekacluster controller
  • Updated PodFactory to store a cluster reference and use it for configuration hash generation
  • Modified container reconciler to skip config version checks for containers without an associated cluster
  • Updated all NewPodFactory calls to pass the cluster parameter

Why make this change?

This change ensures that pods are properly rotated when cluster configuration changes that affect pod behavior.

Copy link
Contributor Author

rugggger commented Mar 4, 2026

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.
Learn more


How to use the Graphite Merge Queue

Add 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.

@rugggger rugggger marked this pull request as ready for review March 4, 2026 12:44
@rugggger rugggger requested a review from a team as a code owner March 4, 2026 12:44
@graphite-app
Copy link

graphite-app bot commented Mar 4, 2026

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe let's just pass podConfigHash string param here directly ?

I see cluster is used only for this call later: PodConfigHashForCluster(f.cluster)

@rugggger rugggger force-pushed the 03-04-fix_add_updatableclusterspec_to_the_podconfig_hash branch from 54e6bc4 to 0a95ca0 Compare March 8, 2026 09:06
@rugggger rugggger force-pushed the 02-26-fix_rotate_pods_on_pod-config_change branch from d3da503 to fda9371 Compare March 8, 2026 09:06
@rugggger rugggger force-pushed the 03-04-fix_add_updatableclusterspec_to_the_podconfig_hash branch from 0a95ca0 to 4c2eb1a Compare March 8, 2026 09:15
@rugggger rugggger force-pushed the 02-26-fix_rotate_pods_on_pod-config_change branch from fda9371 to 5ae7f5f Compare March 8, 2026 09:15
@rugggger rugggger force-pushed the 03-04-fix_add_updatableclusterspec_to_the_podconfig_hash branch from 4c2eb1a to 486b6d3 Compare March 9, 2026 12:23
@rugggger rugggger force-pushed the 02-26-fix_rotate_pods_on_pod-config_change branch from 5ae7f5f to 8f6b3af Compare March 9, 2026 12:23
@rugggger rugggger force-pushed the 03-04-fix_add_updatableclusterspec_to_the_podconfig_hash branch from 486b6d3 to 5810044 Compare March 9, 2026 14:13
@rugggger rugggger force-pushed the 02-26-fix_rotate_pods_on_pod-config_change branch from 8f6b3af to 05be919 Compare March 9, 2026 14:13
@rugggger rugggger force-pushed the 03-04-fix_add_updatableclusterspec_to_the_podconfig_hash branch from 5810044 to c35862f Compare March 10, 2026 14:50
@rugggger rugggger force-pushed the 02-26-fix_rotate_pods_on_pod-config_change branch from 05be919 to a98748c Compare March 10, 2026 14:50
@rugggger rugggger closed this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants