We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aa9cab commit 3e8b973Copy full SHA for 3e8b973
1 file changed
internal/cmd/cli/target.go
@@ -177,6 +177,11 @@ func (t *Target) Run(cmd *cobra.Command, args []string) error {
177
// stageAllTargets overrides maxNew to the total number of matched targets so
178
// that UpdatePartitions stages a deployment for every target, not just the
179
// first target.DefaultMaxNew.
180
+//
181
+// NOTE: mutating bundle.Spec.RolloutStrategy is visible to UpdatePartitions
182
+// because target.Manager.Targets() stores the same bundle pointer in every
183
+// target's Bundle field, and UpdatePartitions reads MaxNew from
184
+// targets[0].Bundle.Spec.RolloutStrategy.
185
func stageAllTargets(bundle *v1alpha1.Bundle, matchedTargets []*target.Target) error {
186
count := len(matchedTargets)
187
if bundle.Spec.RolloutStrategy == nil {
0 commit comments