-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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(appset): reduce cluster secret logging #21109
Conversation
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #21109 +/- ##
==========================================
+ Coverage 55.17% 55.20% +0.02%
==========================================
Files 324 324
Lines 55581 55584 +3
==========================================
+ Hits 30669 30687 +18
+ Misses 22284 22268 -16
- Partials 2628 2629 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
|
I would really like to also remove the generator dump from this Info line as well. |
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Debug enabled
Info level
|
@@ -69,9 +69,11 @@ func GenerateApplications(logCtx *log.Entry, applicationSetInfo argov1alpha1.App | |||
res = append(res, *app) | |||
} | |||
} | |||
|
|||
logCtx.WithField("generator", requestedGenerator).Infof("generated %d applications", len(res)) |
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.
Based on the convo in slack, I am removing the struct dump for info level logs.
* feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * e2e Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> --------- Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
* feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * e2e Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> --------- Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> Signed-off-by: Brett C. Dudo <brett@dudo.io>
* feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * feat(appset): reduce cluster secret logging Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * e2e Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> --------- Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Currently, the cluster secret matching logs a line every time a cluster generator matches a cluster secret. When the reconciles were happening synchronously the logs had more meaning. Now that reconciles can occur asynchronously, you cannot tie the log line to which applicationset generator caused it.
Checklist: