Redis operator is not able to differentiate between multiple clusters when run on different ports other than 6379 which is hardcoded.
Steps to reproduce:
- deploy redis cluster with hostnetwork=true on port 6379.
( operator creates a cluster with all pods running on 6379 and all good)
- deploy 2nd cluster with hostnetwork=true on port 6389.
(operator creates svc for the second cluster with port no:6379 as it is hardcoded here:
|
Ports: []kapiv1.ServicePort{{Port: 6379, Name: "redis"}}, |
)
- the operator now gets confused and mixes both the clusters together.
RedisCluster.txt
Redis operator is not able to differentiate between multiple clusters when run on different ports other than 6379 which is hardcoded.
Steps to reproduce:
( operator creates a cluster with all pods running on 6379 and all good)
(operator creates svc for the second cluster with port no:6379 as it is hardcoded here:
Redis-Operator/pkg/controller/service_control.go
Line 76 in 68f754e
RedisCluster.txt