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

Improve logging statements in CES usage and reduce code reuse #22428

Merged
merged 2 commits into from
Feb 28, 2023
Merged

Improve logging statements in CES usage and reduce code reuse #22428

merged 2 commits into from
Feb 28, 2023

Commits on Feb 28, 2023

  1. operator: Refactor to reduce duplicate code

    getCESTrackerOnly() is just a slightly different version of
    getCESTracker(), we only need one such function. Remove the other one.
    
    Signed-off-by: yanggang <gang.yang@daocloud.io>
    Signed-off-by: Joe Stringer <joe@cilium.io>
    yanggang authored and joestringer committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    fc05140 View commit details
    Browse the repository at this point in the history
  2. operator: Improve logging for CES interactions

    Reuse logfields for common names, add some missing fields from logging
    statements, and add additional debugging statements in error conditions.
    
    Signed-off-by: yanggang <gang.yang@daocloud.io>
    Signed-off-by: Joe Stringer <joe@cilium.io>
    yanggang authored and joestringer committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    06722a6 View commit details
    Browse the repository at this point in the history