-
Notifications
You must be signed in to change notification settings - Fork 314
Update references of cache, env, health to use modules from registry-scanner #972
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
Update references of cache, env, health to use modules from registry-scanner #972
Conversation
…scanner Signed-off-by: Ishita Sequeira <[email protected]>
Signed-off-by: Ishita Sequeira <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #972 +/- ##
==========================================
- Coverage 72.44% 71.99% -0.46%
==========================================
Files 27 24 -3
Lines 3727 3642 -85
==========================================
- Hits 2700 2622 -78
+ Misses 885 880 -5
+ Partials 142 140 -2 ☔ View full report in Codecov by Sentry. |
| "github.com/argoproj-labs/argocd-image-updater/pkg/version" | ||
| "github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/env" | ||
| "github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/health" | ||
| "github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/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.
Is the health server referenced by registry-scanner for it to be relocated?
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.
It is not. Do you feel we should keep it in image-updater itself?
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.
Yeah, since it's checks the health of argocd-image-updater, and it won't be able to run within registry-scanner. We can address that in a separate PR.
| const DefaultTargetFilePattern = ".argocd-source-%s_%s.yaml" | ||
| const DefaultTargetFilePatternWithoutNamespace = ".argocd-source-%s.yaml" | ||
| const DefaultHelmValuesFilename = "values.yaml" | ||
|
|
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.
I see both image-updater and registry-scanner have constants.go. Do we want to keep only fields required by registry-scanner in registry-scanner/constants.go, and remove those not used by registry-scanner?
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.
Yes, I am working on a logic to separate them out. It needs a bit of refactoring. I will have the PR updated.
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.
I will move this change to a different PR.
Signed-off-by: Ishita Sequeira <[email protected]>
Update references of cache, env, health to use modules from registry-scanner