mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Fix VersionCheck propagation (#1438)
This commit is contained in:
parent
e9c68e1204
commit
5693d82f40
2 changed files with 19 additions and 6 deletions
|
@ -9,6 +9,7 @@
|
|||
- (Maintenance) Bump Go to 1.20.10
|
||||
- (Bugfix) Fix ArangoBackup Create Backoff & ArangoBackupPolicy propagation
|
||||
- (Maintenance) Add IndexMethod Documentation
|
||||
- (Bugfix) Fix VersionCheck args propagation
|
||||
|
||||
## [1.2.33](https://github.com/arangodb/kube-arangodb/tree/1.2.33) (2023-09-27)
|
||||
- (Maintenance) Bump golang.org/x/net to v0.13.0
|
||||
|
|
|
@ -655,9 +655,16 @@ func CreateArangoDVolumes(status api.MemberStatus, input pod.Input, spec api.Dep
|
|||
return volumes
|
||||
}
|
||||
|
||||
// GetArgs returns list of arguments for the ArangoD upgrade container.
|
||||
func (a *ArangoUpgradeContainer) GetArgs() ([]string, error) {
|
||||
return createArangodArgsWithUpgrade(a.cachedStatus, a.input)
|
||||
// GetCommand returns list of arguments for the ArangoD upgrade container.
|
||||
func (a *ArangoUpgradeContainer) GetCommand() ([]string, error) {
|
||||
args, err := a.ContainerCreator.GetCommand()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
upgradeArgs := pod.AutoUpgrade().Args(a.input).Sort().AsArgs()
|
||||
|
||||
return append(args, upgradeArgs...), nil
|
||||
}
|
||||
|
||||
// GetLifecycle returns no lifecycle for the ArangoD upgrade container.
|
||||
|
@ -675,9 +682,14 @@ func (a *ArangoUpgradeContainer) GetProbes() (*core.Probe, *core.Probe, *core.Pr
|
|||
return nil, nil, nil, nil
|
||||
}
|
||||
|
||||
// GetArgs returns list of arguments for the ArangoD version check container.
|
||||
func (a *ArangoVersionCheckContainer) GetArgs() ([]string, error) {
|
||||
return createArangodArgs(a.cachedStatus, a.input, a.versionArgs...)
|
||||
// GetCommand returns list of arguments for the ArangoD version check container.
|
||||
func (a *ArangoVersionCheckContainer) GetCommand() ([]string, error) {
|
||||
args, err := a.ContainerCreator.GetCommand()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return append(args, a.versionArgs.Sort().AsArgs()...), nil
|
||||
}
|
||||
|
||||
// GetLifecycle returns no lifecycle for the ArangoD version check container.
|
||||
|
|
Loading…
Reference in a new issue