Skip to content

Commit

Permalink
fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
freehan committed Aug 16, 2019
1 parent f3ff2a6 commit 54f86b7
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 54f86b7

Please sign in to comment.