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

Set cluster_name var in logs vars separately and not in init #2777

Merged
merged 2 commits into from
Mar 26, 2024

Commits on Mar 21, 2024

  1. Set cluster_name var in logs vars separately and not in init

    If we set the `cluster_name` field in log variables (extran fields that are
    printed in logs), inside the `init` function of `log` package, we would
    un necessarily be calling k8s api even from the places where we don't have to
    do anything with the k8s api.
    To fix this, this commit introduces a new function that can be used to setup
    that field in the logs vars and that function will only be called from the
    places where we need the logs to have to the `cluster_name` field, for example
    `kanctl`, `controller` and `repository-controller`.
    viveksinghggits committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    2c234df View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. Configuration menu
    Copy the full SHA
    e3f7523 View commit details
    Browse the repository at this point in the history