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: option to disable writing k8s events - (cherry-pick 2.13 #18441) #20788

Merged

Conversation

Jack-R-lantern
Copy link
Contributor

feat: option to disable writing k8s events - (cherry-pick 2.13 #18441 )

…18441)

* feat: option to disable writing k8s events

optioned to write logs for k8s events.
Each is passed as an environment variable and defaults to true,
disabling it requires explicitly setting the option to false.

Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com>

* feat: option to disable writing k8s events

fix unit test
- application_test
- applicationset_test
- project_test
- appcontroller_tes
- audit_logger_test

Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com>

* rebase

Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com>

---------

Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com>
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 12 lines in your changes missing coverage. Please review.

Project coverage is 55.04%. Comparing base (347f221) to head (028baf2).
Report is 37 commits behind head on release-2.13.

Files with missing lines Patch % Lines
util/argo/audit_logger.go 80.55% 6 Missing and 1 partial ⚠️
cmd/argocd-server/commands/argocd_server.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           release-2.13   #20788   +/-   ##
=============================================
  Coverage         55.04%   55.04%           
=============================================
  Files               320      320           
  Lines             54667    54735   +68     
=============================================
+ Hits              30091    30129   +38     
- Misses            22000    22025   +25     
- Partials           2576     2581    +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gdsoumya gdsoumya merged commit 6a8cb6e into argoproj:release-2.13 Nov 14, 2024
21 of 22 checks passed
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