Skip to content

Commit 684a24d

Browse files
committed
[testhelper] update serverList and serverListWithInet for fqdn
For tls, in openstack-k8s-operators#192 changed the server lists to contain the svc fqdn, but missed to update the test helpers.
1 parent 8b35d05 commit 684a24d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apis/test/helpers/memcached.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ func (tc *TestHelper) SimulateMemcachedReady(name types.NamespacedName) {
112112
serverList := []string{}
113113
serverListWithInet := []string{}
114114
for i := 0; i < int(*mc.Spec.Replicas); i++ {
115-
serverList = append(serverList, fmt.Sprintf("%s-%d.%s:11211", mc.Name, i, mc.Name))
116-
serverListWithInet = append(serverListWithInet, fmt.Sprintf("inet:[%s-%d.%s]:11211", mc.Name, i, mc.Name))
115+
serverList = append(serverList, fmt.Sprintf("%s-%d.%s.%s.svc:11211", mc.Name, i, mc.Name, mc.Namespace))
116+
serverListWithInet = append(serverListWithInet, fmt.Sprintf("inet:[%s-%d.%s.%s.svc]:11211", mc.Name, i, mc.Name, mc.Namespace))
117117
}
118118
mc.Status.ServerList = serverList
119119
mc.Status.ServerListWithInet = serverListWithInet

0 commit comments

Comments
 (0)