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
Obsolete Helm value logging.operator.timeFormat ? #261
Comments
https://github.com/kedacore/keda/blob/main/BUILD.md#keda-operator-logging This is the source of truth, the helm chart should be updated. |
Are you willing to send a PR for this @lsolovey? |
Hi @zroubalik, the link above doesn't explain how to change the time format in logs. Do you mean that time format is immutable, and we just need to remove any mention of |
@lsolovey it seems like it's like that. We rely on https://sdk.operatorframework.io/docs/building-operators/golang/references/logging/ for logging. On a quick check it seems that it doesn't support timeformat. But I might be wrong. Could you please investigate whether there is any advanced option to do so? Thx |
@zroubalik I have no experience with Go, but I'll try to do some research on this. Let me dig into the docs for Operator Framework logging and Zap. |
@zroubalik, @tomkerkhove Sorry for the delay, finally I got some time to look into this! I found that controller-runtime actually supports It was added in this PR: kubernetes-sigs/controller-runtime#1688 So, I was able to pass this CLI flag to KEDA Helm chart by setting these Helm values (using KEDA Helm chart 2.6.2):
Now KEDA operator logs looks like:
I think the next step for KEDA would be to start respecting Alternatively - just get rid of What do you think? |
Just a FYI to future google searchers, the deployment template now has explicitly support for the logging faculties: https://github.com/kedacore/charts/blob/main/keda/templates/12-keda-deployment.yaml#L67 Via logging:
operator:
level: debug |
Yes that is correct. I think we can close this issue? |
@tomkerkhove No, the focus of this issue is to allow customizable timestamp formats in logs. In other words, to support |
@tomkerkhove Ah, never mind. Timestamp format is now customizable. It was implemented here: So we can close this one. |
The README.md mentions
logging.operator.timeFormat
value with the description:Using keda Helm chart version 2.6.2 - setting this Helm value doesn't seem to make any difference. I don't see it respected by the Helm chart.
Expected Behavior
Helm value
logging.operator.timeFormat
changes the time format of keda-operator logs.Actual Behavior
Helm value
logging.operator.timeFormat
doesn't change the time format of keda-operator logs.Specifications
The text was updated successfully, but these errors were encountered: