Repository navigation
Add support for json logging format - #5828
Conversation
|
Hi @malovme. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@malovme I think what we want to do is update our BTW: feel free to ask any remaining small questions via Slack |
|
/ok-to-test |
5c83360 to
3496651
Compare
|
/kind feature |
|
/test pull-cert-manager-master-make-test |
|
Wonderful! I now have these options:
$ _bin/server/controller-linux-amd64 --logging-format=json
{"ts":1678180968324.884,"caller":"clientcmd/client_config.go:618","msg":"Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.\n","v":0}
{"ts":1678180968324.9226,"caller":"clientcmd/client_config.go:623","msg":"error creating inClusterConfig, falling back to default config: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined\n","v":0}
{"ts":1678180968325.4653,"caller":"./main.go:39","msg":"cert-manager \"msg\"=\"error while executing\" \"error\"=\"error creating rest config: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable\" \n"}UPDATE: the wrong structure was not caused by not using |
37be0d3 to
4fa2641
Compare
|
@maelvls I updated the PR with the requested changes, could you take a look? |
|
Why do need to add all those new flags to acmesolver? I understand that adding Furthermore, people have no way to configure the acmesolver with the new flags. It makes little sense to add all these new flags when people can't use them. Could you move the acmesolver changes to a new PR? |
I removed the flags from acmesolver. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon, malovme The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Thanks for the improvements, Tim. The acmesolver should now output consistent klog-style logs instead of It looks good to me now. /lgtm |
Signed-off-by: Michael Malov <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
|
New changes are detected. LGTM label has been removed. |

Pull Request Motivation
Structured logging (JSON format) can be enabled.
Related issue: #2605
Kind
feature
Release Note