Skip to content

Commit 72ebe19

Browse files
committed
fix memcached replica change int32 -> *int32
1 parent 0c6dc38 commit 72ebe19

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

modules/test/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ require (
77
github.com/google/uuid v1.3.0
88
github.com/gophercloud/gophercloud v1.5.0
99
github.com/onsi/gomega v1.27.8
10-
github.com/openstack-k8s-operators/infra-operator/apis v0.0.0-20230609175832-5a9a30056080
10+
github.com/openstack-k8s-operators/infra-operator/apis v0.0.0-20230720153501-076b82bb4427
1111
github.com/openstack-k8s-operators/keystone-operator/api v0.0.0-20230612072624-8ebcfc19377a
12-
github.com/openstack-k8s-operators/lib-common/modules/common v0.0.0-20230606033311-3b01713e4d45
12+
github.com/openstack-k8s-operators/lib-common/modules/common v0.0.0-20230619102827-49e72f626a11
1313
github.com/openstack-k8s-operators/mariadb-operator/api v0.0.0-20230717141726-1bd909777952
1414
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
1515
golang.org/x/mod v0.10.0

modules/test/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ github.com/onsi/gomega v1.27.8 h1:gegWiwZjBsf2DgiSbf5hpokZ98JVDMcWkUiigk6/KXc=
227227
github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ=
228228
github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7 h1:rncLxJBpFGqBztyxCMwNRnMjhhIDOWHJowi6q8G6koI=
229229
github.com/openshift/api v0.0.0-20230414143018-3367bc7e6ac7/go.mod h1:ctXNyWanKEjGj8sss1KjjHQ3ENKFm33FFnS5BKaIPh4=
230-
github.com/openstack-k8s-operators/infra-operator/apis v0.0.0-20230609175832-5a9a30056080 h1:wsBYp8qy5tFPKkk/nmqFUJV6cBIWfHwAPr4St/Oehr0=
231-
github.com/openstack-k8s-operators/infra-operator/apis v0.0.0-20230609175832-5a9a30056080/go.mod h1:KDC8rS9D00e4ud5iQUexUxtApmCgqTwjOKcHv2OhGiY=
230+
github.com/openstack-k8s-operators/infra-operator/apis v0.0.0-20230720153501-076b82bb4427 h1:GdJNpT/MDfw3gYKdPVpmtgw522UZfeiRDNaXYjJNvZM=
231+
github.com/openstack-k8s-operators/infra-operator/apis v0.0.0-20230720153501-076b82bb4427/go.mod h1:uuwrYRvdp5VwsWJpA47MnDT+UQjX1UWixagit7FzwV8=
232232
github.com/openstack-k8s-operators/keystone-operator/api v0.0.0-20230612072624-8ebcfc19377a h1:fLQSwMRvNO/o8hKXy20WmffVOnEyPOSKNpQEIhsBbDA=
233233
github.com/openstack-k8s-operators/keystone-operator/api v0.0.0-20230612072624-8ebcfc19377a/go.mod h1:LtZ8b3DYLvX0a89RKbmJgd1q8GcxcOVf7N+bH47a9HU=
234234
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.0.0-20230606033311-3b01713e4d45 h1:o+q7yAQYkp5DM7Ri1kaTPtkPdLSNmoaS/joiu5l9uzU=

modules/test/helpers/memcached.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ func (tc *TestHelper) SimulateMemcachedReady(name types.NamespacedName) {
8282
t.Eventually(func(g t.Gomega) {
8383
mc := tc.GetMemcached(name)
8484
mc.Status.Conditions.MarkTrue(condition.ReadyCondition, condition.ReadyMessage)
85-
mc.Status.ReadyCount = mc.Spec.Replicas
85+
mc.Status.ReadyCount = *mc.Spec.Replicas
8686

8787
serverList := []string{}
8888
serverListWithInet := []string{}
89-
for i := 0; i < int(mc.Spec.Replicas); i++ {
89+
for i := 0; i < int(*mc.Spec.Replicas); i++ {
9090
serverList = append(serverList, fmt.Sprintf("%s-%d.%s:11211", mc.Name, i, mc.Name))
9191
serverListWithInet = append(serverListWithInet, fmt.Sprintf("inet:[%s-%d.%s]:11211", mc.Name, i, mc.Name))
9292
}

0 commit comments

Comments
 (0)