diff --git a/pkg/apis/deployment/v1/server_group.go b/pkg/apis/deployment/v1/server_group.go index 32c01f65f..38df8a5f3 100644 --- a/pkg/apis/deployment/v1/server_group.go +++ b/pkg/apis/deployment/v1/server_group.go @@ -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 diff --git a/pkg/apis/deployment/v2alpha1/server_group.go b/pkg/apis/deployment/v2alpha1/server_group.go index 32c00159c..be7f1aca6 100644 --- a/pkg/apis/deployment/v2alpha1/server_group.go +++ b/pkg/apis/deployment/v2alpha1/server_group.go @@ -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