1
0
Fork 0
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:
Adam Janikowski 2024-08-20 14:24:40 +03:00 committed by GitHub
parent 65ada1d111
commit e9670b3ece
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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