Skip to content

Commit

Permalink
pkg/operator/vttablet/datastore.go: Remove logic around recently depr… (
Browse files Browse the repository at this point in the history
bitpoke#224)

* pkg/operator/vttablet/datastore.go: Remove logic around recently deprecated demote_master_type flag

Signed-off-by: Gary Edgar <[email protected]>

* fix build issue

Signed-off-by: Gary Edgar <[email protected]>
  • Loading branch information
gedgar authored Sep 27, 2021
1 parent be42288 commit 4d8d14c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/operator/vttablet/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package vttablet

import (
corev1 "k8s.io/api/core/v1"
planetscalev2 "planetscale.dev/vitess-operator/pkg/apis/planetscale/v2"
"planetscale.dev/vitess-operator/pkg/operator/lazy"
"planetscale.dev/vitess-operator/pkg/operator/secrets"
"planetscale.dev/vitess-operator/pkg/operator/vitess"
Expand Down Expand Up @@ -130,9 +129,5 @@ func externalDatastoreFlags(spec *Spec) vitess.Flags {
"vreplication_tablet_type": vreplicationTabletType,
}

if spec.Type == planetscalev2.ExternalMasterPoolType {
flags["demote_master_type"] = "SPARE"
}

return flags
}

0 comments on commit 4d8d14c

Please sign in to comment.