-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
Temporary image deleted. |
There was a problem hiding this 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
pkg/affected_apps/config_matcher.go
Outdated
|
||
var appsSlice []v1alpha1.Application | ||
for _, app := range argoApps.Items { | ||
if _, ok := appsMap[app.Name]; !ok { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Send it
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.