Skip to content

Commit

Permalink
fix: update after create bug
Browse files Browse the repository at this point in the history
  • Loading branch information
moolen committed Mar 17, 2020
1 parent ebfb72e commit 15fcf7a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/store/crd/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ func (s *Store) Set(project string, cred crdv1.RobotAccountCredential) error {
},
}
err = s.kubeClient.Create(ctx, &r)
if err != nil {
return nil
}
if apierrs.IsAlreadyExists(err) {
err = s.kubeClient.Get(ctx, types.NamespacedName{Name: rname}, &r)
if err != nil {
Expand Down

0 comments on commit 15fcf7a

Please sign in to comment.