Skip to content

Commit

Permalink
Merge pull request #828 from freehan/fix-test
Browse files Browse the repository at this point in the history
fix possible nil pointer
  • Loading branch information
k8s-ci-robot authored Aug 16, 2019
2 parents f3ff2a6 + 54f86b7 commit f1bfcb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/e2e/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func EnsureEchoService(s *Sandbox, name string, annotations map[string]string, s
return svc, err
}

*deployment.Spec.Replicas = numReplicas
deployment.Spec.Replicas = &numReplicas
if _, err = s.f.Clientset.AppsV1().Deployments(s.Namespace).Update(deployment); err != nil {
return nil, fmt.Errorf("Error updating deployment scale: %v", err)
}
Expand Down

0 comments on commit f1bfcb4

Please sign in to comment.