-
Notifications
You must be signed in to change notification settings - Fork 119
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
Operator :: Accept LogLevel #724
Comments
Hi I am interested in this issue. I am a beginner in opensource. I have experience in Kubernetes and Helm. I believe I will be able to tackle this issue as the issue as it has been marked as |
Hi, @thisthat could you please give me some hints on how to solve this issue? Where can I find the available controllers? |
Hi @sudiptob2 all the operator controllers are in this folder here https://github.com/keptn/lifecycle-toolkit/tree/main/operator/controllers If you check each has a controller.go file where the struct containing the log is defined, ex. https://github.com/keptn/lifecycle-toolkit/blob/main/operator/controllers/lifecycle/keptnapp/controller.go the controllers are all initialized in the main https://github.com/keptn/lifecycle-toolkit/blob/main/operator/main.go To start you could setup all the needed helm values and the ovelray like for the previous pr |
|
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Hi, @RealAnna Thanks for instructing me for solving this ticket. I defined the issue as,
Initially, I defined the controller's log level in the Now in the overlay, I have to set up the env vars for log levels. For example, env:
- name: COMMON_COLLECTOR_LOG_LEVEL
value: "{{ .Values.operator.commonController.logLevel }}" Also, do you have any suggestion on how I should name the |
@sudiptob2 that's cool, yes that is the way to go. I would keep the env name as you proposed in the example.
|
make sure to check the debug level available for our logger https://pkg.go.dev/github.com/go-logr/zapr#section-readme |
Thanks much for giving this hint. Working on it. |
@RealAnna Based on my understanding, I believe it would be best to leave the log level at its default value of -1 in the |
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
…tance controller log level(keptn#724) Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
…tance controller log level(keptn#724) Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
Goal
Update the Helm chart to allow the possibility of configuring the log level.
Technical Details
In #697, we introduced a Helm chart for the operator. Each controller shall have its own category with the value
logLevel
that defines the verbosity of the controller logger.Example:
These values will configure the
KeptnConfig
CRD installed.DoD
Reference
The text was updated successfully, but these errors were encountered: