We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0fdaa9 + 9c7a3f8 commit 97e2f3dCopy full SHA for 97e2f3d
pkg/monitortests/kubeapiserver/disruptioninclusterapiserver/monitortest.go
@@ -106,7 +106,7 @@ func (i *InvariantInClusterDisruption) createDeploymentAndWaitToRollout(ctx cont
106
nil,
107
func(event watch.Event) (bool, error) {
108
deployment := event.Object.(*appsv1.Deployment)
109
- return deployment.Status.AvailableReplicas == deployment.Status.Replicas, nil
+ return deployment.Status.AvailableReplicas == *deployment.Spec.Replicas, nil
110
},
111
); watchErr != nil {
112
return fmt.Errorf("deployment %s didn't roll out: %v", deploymentObj.Name, watchErr)
0 commit comments