// ExpectStagesInStatus returns an AsyncAssertion for the length of stages with status in the Progressive Rollout object
ExpectStagesInStatus returns an AsyncAssertion for the length of stages with status in the Progressive Rollout object
// ExpectStagesInStatus returns an AsyncAssertion for the length of stages with status in the Progressive Rollout object
func ExpectStagesInStatus(ctx context.Context, key client.ObjectKey) AsyncAssertion {
	return Eventually(func() int {
		ps := syncv1alpha1.ProgressiveSync{}
		err := k8sClient.Get(ctx, key, &ps)
		if err != nil {
			return -1
		}
		return len(ps.Status.Stages)
	})
}
func ExpectStagesInStatus ( ctx context . Context , key client . ObjectKey ) AsyncAssertion { return Eventually ( func ( ) int { ps := syncv1alpha1 . ProgressiveSync { } err := k8sClient . Get ( ctx , key , & ps ) if err != nil { return - 1 } return len ( ps . Status . Stages ) } ) }
ExpectStagesInStatus returns an AsyncAssertion for the length of stages with status in the Progressive Rollout object
ExpectStagesInStatus returns an AsyncAssertion for the length of stages with status in the Progressive Rollout object