Skip to content

Commit

Permalink
Do not panic on webhook errors (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellistarn authored Nov 20, 2021
1 parent a8730ae commit 596a192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cloudprovider/aws/cloudprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ func (c *CloudProvider) Validate(ctx context.Context, constraints *v1alpha5.Cons
func (c *CloudProvider) Default(ctx context.Context, constraints *v1alpha5.Constraints) {
vendorConstraints, err := v1alpha1.Deserialize(constraints)
if err != nil {
logging.FromContext(ctx).Fatalf("Failed to deserialize provider, %s", err.Error())
logging.FromContext(ctx).Errorf("Failed to deserialize provider, %s", err.Error())
return
}
vendorConstraints.Default(ctx)
if err := vendorConstraints.Serialize(constraints); err != nil {
logging.FromContext(ctx).Fatalf("Failed to serialize provider, %s", err.Error())
logging.FromContext(ctx).Errorf("Failed to serialize provider, %s", err.Error())
}
}

0 comments on commit 596a192

Please sign in to comment.