k8sgpt-ai/k8sgpt

[Bug]: The K8sGPT docker image can't log in the container provisioned with K8sGPT CRD.

Closed this issue · 1 comments

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the behavior

Affected Components

  • K8sGPT (CLI)
  • K8sGPT Operator

K8sGPT Version

v0.0.1

Kubernetes Version

V1.28.0

Host OS and its Version

No response

Steps to reproduce

  1. kubectl apply -f config/samples/k8sgpt_localai.yaml
  2. check logs of the container.
  3. log.Pringln("some message") in openai.go should have messages.

Expected behaviour

The log.Println("some message") should have message in container logs.

Actual behaviour

[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.

Additional Information

No response

I tested the PR #1211 and it works for me. Thanks.