Skip to content

Commit

Permalink
Remove seed node label
Browse files Browse the repository at this point in the history
  • Loading branch information
rzetelskik committed Jul 24, 2021
1 parent 603327d commit 7c1cb92
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/controller/scyllacluster/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ func MemberService(sc *scyllav1.ScyllaCluster, rackName, name string, oldService
labels[naming.DatacenterNameLabel] = sc.Spec.Datacenter.Name
labels[naming.RackNameLabel] = rackName

// TODO: Remove seed label in v1.5. (#704)
// We need to keep this for v1.3 compatibility, so a ScyllaCluster that is rolling out during
// the operator upgrade, has a pod that restarts or gets evicted in the meantime can become ready
// as the label is still used by v1.3 sidecar before the new cluster version rolls out.
// If Member is seed, add the appropriate label
if strings.HasSuffix(name, "-0") || strings.HasSuffix(name, "-1") {
labels[naming.SeedLabel] = ""
}

// Copy the old replace label, if present.
var replaceAddr string
var hasReplaceLabel bool
Expand Down

0 comments on commit 7c1cb92

Please sign in to comment.