Skip to content

fix: keep aggregator volume order stable to avoid rollout on operator upgrade#260

Merged
aa1ex merged 1 commit into
kaasops:mainfrom
aa1ex:fix/aggregator-volume-order
Jul 15, 2026
Merged

fix: keep aggregator volume order stable to avoid rollout on operator upgrade#260
aa1ex merged 1 commit into
kaasops:mainfrom
aa1ex:fix/aggregator-volume-order

Conversation

@aa1ex

@aa1ex aa1ex commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

#251 moved the aggregator's data volume from the static required-volumes list to a conditional append after procfs/sysfs, so for non-persistent aggregators the generated pod template volume order changed from [config, data, procfs, sysfs] to [config, procfs, sysfs, data]. The volume set is identical, but the order change makes a different pod template, so every VectorAggregator and ClusterVectorAggregator with persistence disabled is rolled once when the operator is upgraded.

This PR inserts the data volume back at its original position (right after config) and adds a regression test pinning the order. Persistent mode is unchanged (the data volume still comes from the StatefulSet volume claim template); volumeMounts order was never affected.

Verified with an upgrade test on kind (v1.31.9 and v1.36.1): v0.4.1 operator → this branch over the same CRs — with this fix the aggregator Deployment generation, ReplicaSet and pods stay untouched, config secrets byte-identical; without it the Deployment rolls immediately on operator start.

… upgrade

Signed-off-by: Aleksandr Aleksandrov <aaleksandrov.cy@gmail.com>
@aa1ex
aa1ex merged commit b636c36 into kaasops:main Jul 15, 2026
8 of 9 checks passed
@aa1ex
aa1ex deleted the fix/aggregator-volume-order branch July 20, 2026 11:00
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.

1 participant