Skip to content

Commit 5debeb1

Browse files
Scale up webhook deployment to 3 replicas (#1222)
* Scale up webhook deployment to 3 replicas * fix test
1 parent 5f7c54b commit 5debeb1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

testsupport/wait/member.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2201,11 +2201,11 @@ func (a *MemberAwaitility) waitForService(t *testing.T) {
22012201

22022202
func (a *MemberAwaitility) waitForWebhookDeployment(t *testing.T, image string) {
22032203
t.Logf("checking Deployment '%s' in namespace '%s'", "member-operator-webhook", a.Namespace)
2204-
actualDeployment := a.WaitForDeploymentToGetReady(t, "member-operator-webhook", 1,
2204+
actualDeployment := a.WaitForDeploymentToGetReady(t, "member-operator-webhook", 3,
22052205
DeploymentHasContainerWithImage("mutator", image))
22062206

22072207
assert.Equal(t, bothWebhookLabels, actualDeployment.Labels)
2208-
assert.Equal(t, int32(1), *actualDeployment.Spec.Replicas)
2208+
assert.Equal(t, int32(3), *actualDeployment.Spec.Replicas)
22092209
assert.Equal(t, appMemberOperatorWebhookLabel, actualDeployment.Spec.Selector.MatchLabels)
22102210

22112211
template := actualDeployment.Spec.Template
@@ -2228,7 +2228,7 @@ func (a *MemberAwaitility) waitForWebhookDeployment(t *testing.T, image string)
22282228
assert.Equal(t, "/etc/webhook/certs", container.VolumeMounts[0].MountPath)
22292229
assert.True(t, container.VolumeMounts[0].ReadOnly)
22302230

2231-
a.WaitForDeploymentToGetReady(t, "member-operator-webhook", 1)
2231+
a.WaitForDeploymentToGetReady(t, "member-operator-webhook", 3)
22322232
}
22332233

22342234
func (a *MemberAwaitility) verifySecret(t *testing.T) []byte {

0 commit comments

Comments
 (0)