Skip to content

Commit

Permalink
fix missing error handling when creating mutatingwebhookconfiguration (
Browse files Browse the repository at this point in the history
…flyteorg#401)

Signed-off-by: akumor <[email protected]>
  • Loading branch information
akumor authored Feb 16, 2022
1 parent 6016844 commit 5db62a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytepropeller/pkg/webhook/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ func createMutationConfig(ctx context.Context, kubeClient *kubernetes.Clientset,
}

return err
} else if err != nil {
logger.Infof(ctx, "Failed to create MutatingWebhookConfiguration [%v/%v]. Error: %v", mutateConfig.GetNamespace(), mutateConfig.GetName(), err)
return fmt.Errorf("failed to create mutatingwebhookconfiguration. Error: %w", err)
}

return nil
Expand Down

0 comments on commit 5db62a0

Please sign in to comment.