Skip to content

Commit 9c15653

Browse files
authored
[Bugfix] Ensure upgrade flag (#709)
1 parent f9845f8 commit 9c15653

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pkg/deployment/pod/upgrade.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,13 @@ func (u autoUpgrade) Volumes(i Input) ([]core.Volume, []core.VolumeMount) {
4848
}
4949

5050
func (u autoUpgrade) Args(i Input) k8sutil.OptionPairs {
51-
if !i.AutoUpgrade {
52-
return nil
53-
}
54-
51+
// Always add upgrade flag due to fact it is now only in initContainers
5552
if i.Version.CompareTo("3.6.0") >= 0 {
5653
switch i.Group {
5754
case deploymentApi.ServerGroupCoordinators:
58-
return k8sutil.NewOptionPair(k8sutil.OptionPair{"--cluster.upgrade", "online"})
55+
return k8sutil.NewOptionPair(k8sutil.OptionPair{Key: "--cluster.upgrade", Value: "online"})
5956
}
6057
}
6158

62-
return k8sutil.NewOptionPair(k8sutil.OptionPair{"--database.auto-upgrade", "true"})
59+
return k8sutil.NewOptionPair(k8sutil.OptionPair{Key: "--database.auto-upgrade", Value: "true"})
6360
}

0 commit comments

Comments
 (0)