Skip to content

Commit 7ca0741

Browse files
committed
fix release notes
1 parent 7c8f6e6 commit 7ca0741

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

changelog/20250806_breaking_changing_container_setup_of_static_architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ kind: breaking
44
date: 2025-08-06
55
---
66

7-
This change fixes the current complex and difficult-to-maintain architecture for stateful set containers, which relies on an "agent matrix" to map operator and agent versions which led to a sheer amount of images.
8-
We solve this by shifting to a 3-container setup. This new design eliminates the need for the operator-version/agent-version matrix by adding one additional container containing all required binaries. This architecture maps to what we already do with the mongodb-database container.
7+
* This change fixes the current complex and difficult-to-maintain architecture for stateful set containers, which relies on an "agent matrix" to map operator and agent versions which led to a sheer amount of images.
8+
* We solve this by shifting to a 3-container setup. This new design eliminates the need for the operator-version/agent-version matrix by adding one additional container containing all required binaries. This architecture maps to what we already do with the mongodb-database container.

controllers/operator/construct/database_construction.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,13 @@ func buildDatabaseStatefulSetConfigurationFunction(mdb databaseStatefulSetSource
494494
shareProcessNs = func(sts *appsv1.StatefulSet) {
495495
sts.Spec.Template.Spec.ShareProcessNamespace = ptr.To(true)
496496
}
497-
staticMods = append(staticMods, podtemplatespec.WithContainerByIndex(0, container.WithVolumeMounts(volumeMounts)))
498-
staticMods = append(staticMods, podtemplatespec.WithContainerByIndex(1, container.WithVolumeMounts(volumeMounts)))
499-
staticMods = append(staticMods, podtemplatespec.WithContainerByIndex(2, container.WithVolumeMounts(volumeMounts)))
497+
// Add volume mounts to all containers in static architecture
498+
// This runs after all containers have been added to the spec
499+
staticMods = append(staticMods, func(spec *corev1.PodTemplateSpec) {
500+
for i := range spec.Spec.Containers {
501+
container.WithVolumeMounts(volumeMounts)(&spec.Spec.Containers[i])
502+
}
503+
})
500504
databaseImage = opts.AgentImage
501505
} else {
502506
databaseImage = opts.DatabaseNonStaticImage

0 commit comments

Comments
 (0)