@@ -655,9 +655,16 @@ func CreateArangoDVolumes(status api.MemberStatus, input pod.Input, spec api.Dep
655655 return volumes
656656}
657657
658- // GetArgs returns list of arguments for the ArangoD upgrade container.
659- func (a * ArangoUpgradeContainer ) GetArgs () ([]string , error ) {
660- return createArangodArgsWithUpgrade (a .cachedStatus , a .input )
658+ // GetCommand returns list of arguments for the ArangoD upgrade container.
659+ func (a * ArangoUpgradeContainer ) GetCommand () ([]string , error ) {
660+ args , err := a .ContainerCreator .GetCommand ()
661+ if err != nil {
662+ return nil , err
663+ }
664+
665+ upgradeArgs := pod .AutoUpgrade ().Args (a .input ).Sort ().AsArgs ()
666+
667+ return append (args , upgradeArgs ... ), nil
661668}
662669
663670// GetLifecycle returns no lifecycle for the ArangoD upgrade container.
@@ -675,9 +682,14 @@ func (a *ArangoUpgradeContainer) GetProbes() (*core.Probe, *core.Probe, *core.Pr
675682 return nil , nil , nil , nil
676683}
677684
678- // GetArgs returns list of arguments for the ArangoD version check container.
679- func (a * ArangoVersionCheckContainer ) GetArgs () ([]string , error ) {
680- return createArangodArgs (a .cachedStatus , a .input , a .versionArgs ... )
685+ // GetCommand returns list of arguments for the ArangoD version check container.
686+ func (a * ArangoVersionCheckContainer ) GetCommand () ([]string , error ) {
687+ args , err := a .ContainerCreator .GetCommand ()
688+ if err != nil {
689+ return nil , err
690+ }
691+
692+ return append (args , a .versionArgs .Sort ().AsArgs ()... ), nil
681693}
682694
683695// GetLifecycle returns no lifecycle for the ArangoD version check container.
0 commit comments