Skip to content

Commit 9d68837

Browse files
committed
fix(redis): test double ipam
1 parent 91870a8 commit 9d68837

File tree

2 files changed

+556
-143
lines changed

2 files changed

+556
-143
lines changed

internal/namespaces/redis/v1/custom_cluster.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ func clusterCreateBuilder(c *core.Command) *core.Command {
7373
continue
7474
}
7575
ipamConfig := &redis.EndpointSpecPrivateNetworkSpecIpamConfig{}
76-
if !customEndpoint.PrivateNetwork.EnableIpam {
76+
if !customEndpoint.PrivateNetwork.EnableIpam ||
77+
len(customEndpoint.PrivateNetwork.ServiceIPs) > 0 {
7778
ipamConfig = nil
7879
}
7980
createClusterRequest.Endpoints = append(

0 commit comments

Comments
 (0)