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

Add controller name to periodical_enqueue_source #8198

Merged
merged 2 commits into from
Sep 12, 2024

Commits on Sep 9, 2024

  1. Add controller name to periodical_enqueue_source

    The code changes are related to the `NewPeriodicalEnqueueSource` function in the `kube/periodical_enqueue_source.go` file. This function is used to create a new instance of the `PeriodicalEnqueueSource` struct, which is responsible for periodically enqueueing objects into a work queue.
    
    The changes involve adding two new parameters to this function: `controllerName string` and modifying the existing `logger` parameter to include additional fields.
    
    Here's what changed:
    
    1. A new `controllerName` parameter was added to the `NewPeriodicalEnqueueSource` function.
    
    These changes are to adding more context or metadata to the logging output, possibly for debugging or monitoring purposes.
    
    The other files (`restore_operations_controller.go`, `schedule_controller.go`, and their respective test files) were modified to use this updated `NewPeriodicalEnqueueSource` function with the new `controllerName` parameter.
    
    Signed-off-by: Tiger Kaovilai <[email protected]>
    kaovilai committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    5c4c66b View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Remove additional param, use pkg/constant

    Signed-off-by: Tiger Kaovilai <[email protected]>
    kaovilai committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    c8aa37d View commit details
    Browse the repository at this point in the history