mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Fix Enabled Mode Condition (#1697)
This commit is contained in:
parent
65ada1d111
commit
e9670b3ece
2 changed files with 4 additions and 4 deletions
|
@ -154,14 +154,14 @@ func (g ServerGroup) Enabled(mode DeploymentMode) bool {
|
|||
default:
|
||||
return false
|
||||
}
|
||||
case DeploymentModeActiveFailover:
|
||||
case DeploymentModeCluster:
|
||||
switch g {
|
||||
case ServerGroupAgents, ServerGroupDBServers, ServerGroupCoordinators, ServerGroupSyncMasters, ServerGroupSyncWorkers:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
case DeploymentModeCluster:
|
||||
case DeploymentModeActiveFailover:
|
||||
switch g {
|
||||
case ServerGroupSingle, ServerGroupAgents:
|
||||
return true
|
||||
|
|
|
@ -154,14 +154,14 @@ func (g ServerGroup) Enabled(mode DeploymentMode) bool {
|
|||
default:
|
||||
return false
|
||||
}
|
||||
case DeploymentModeActiveFailover:
|
||||
case DeploymentModeCluster:
|
||||
switch g {
|
||||
case ServerGroupAgents, ServerGroupDBServers, ServerGroupCoordinators, ServerGroupSyncMasters, ServerGroupSyncWorkers:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
case DeploymentModeCluster:
|
||||
case DeploymentModeActiveFailover:
|
||||
switch g {
|
||||
case ServerGroupSingle, ServerGroupAgents:
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue