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

queue new apps when the manifests show up #93

Merged
merged 24 commits into from
Dec 22, 2023
Merged

queue new apps when the manifests show up #93

merged 24 commits into from
Dec 22, 2023

Conversation

djeebus
Copy link
Collaborator

@djeebus djeebus commented Dec 18, 2023

This also removes the "best effort" matcher. It's highly opinionated, relies on some very specific undocumented path structure, and probably isn't best used anywhere anyway.

Copy link

github-actions bot commented Dec 18, 2023

Temporary image deleted.

@djeebus djeebus marked this pull request as ready for review December 21, 2023 00:59
Copy link
Collaborator

@polyrain polyrain left a comment

Choose a reason for hiding this comment

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

LGTM, few comments around the Gitlab process usage but this is a massive cleanup of the architecture that I'm happy to see


var appsSlice []v1alpha1.Application
for _, app := range argoApps.Items {
if _, ok := appsMap[app.Name]; !ok {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we log failures here under a debug log?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This checks to see if an argo app was one of the triggered apps. It's not a failure, it just means "this app wasn't changed in this pull request". I'll change the variable names to make that obvious.

pkg/events/check.go Show resolved Hide resolved
pkg/diff/diff.go Show resolved Hide resolved
pkg/vcs/gitlab_client/client.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@polyrain polyrain left a comment

Choose a reason for hiding this comment

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

LGTM! Send it

@djeebus djeebus merged commit 23662c5 into main Dec 22, 2023
5 checks passed
@djeebus djeebus deleted the diff-new-apps branch December 22, 2023 15:13
@djeebus djeebus mentioned this pull request Dec 22, 2023
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.

2 participants