Skip to content

Commit

Permalink
Remove haproxy pods from headless service
Browse files Browse the repository at this point in the history
  • Loading branch information
indiebrain committed Jan 3, 2024
1 parent de71e28 commit 0915ebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions operator/redisfailover/service/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const (

const (
baseName = "rf"
haproxyRoleName = "haproxy"
sentinelName = "s"
sentinelRoleName = "sentinel"
sentinelConfigFileName = "sentinel.conf"
Expand Down
7 changes: 2 additions & 5 deletions operator/redisfailover/service/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ func generateHAProxyDeployment(rf *redisfailoverv1.RedisFailover, labels map[str

namespace := rf.Namespace

labels = util.MergeLabels(labels, map[string]string{
"app.kubernetes.io/component": "redis",
})

selectorLabels := util.MergeLabels(labels, generateComponentLabel("haproxy"))
labels = util.MergeLabels(labels, generateComponentLabel(haproxyRoleName))
selectorLabels := util.MergeLabels(labels)

volumeMounts := []corev1.VolumeMount{
{
Expand Down

0 comments on commit 0915ebf

Please sign in to comment.