Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updating to use latest ocm for certificates and adding gitea support validation #29

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

Skarlso
Copy link
Contributor

@Skarlso Skarlso commented Jul 12, 2023

No description provided.

@Skarlso Skarlso requested review from phoban01 and souleb July 18, 2023 08:03
@Skarlso Skarlso marked this pull request as ready for review July 18, 2023 08:03
}
}

func (v *Validator) FailValidation(ctx context.Context, repository gitv1alpha1.Repository, sync deliveryv1alpha1.Sync) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FailValidation and PassValidation mostly do the same thing. We could have a higher order function that provide the status.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the distinguishing in the calling code. This could be a single function saying set status or something. But I like that we can call pass it or fail it; whatever the status is, the caller doesn't have to know. That's why I have these two.

@Skarlso Skarlso merged commit 8d852cd into main Jul 19, 2023
2 checks passed
@Skarlso Skarlso deleted the add-gitea-validation branch July 19, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants