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

fix: set logger for controller-runtime #1211

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

yeahdongcn
Copy link
Contributor

Closes #1208

πŸ“‘ Description

Set logger for controller-runtime.

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

Testing done:

  • make docker-build -> ok
  • After applying the newly built Docker image in k8sgpt-operator, this log [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. is no longer present.

@yeahdongcn yeahdongcn requested review from a team as code owners August 1, 2024 07:50
Copy link

@cf250024 cf250024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the changes and it works for me. Thanks.

@cf250024
Copy link

cf250024 commented Aug 6, 2024

Can we put new code in pkg/server/serve.go instead of cmd/serve/serve.go?
I'm thinking this part is more related to server that cli. I tried this option prior your PR and it also works.

@AlexsJones
Copy link
Member

Can we put new code in pkg/server/serve.go instead of cmd/serve/serve.go? I'm thinking this part is more related to server that cli. I tried this option prior your PR and it also works.

I would be supportive of that also

Copy link
Member

@AlexsJones AlexsJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this into the pkg/server/serve.go

Signed-off-by: Xiaodong Ye <yeahdongcn@gmail.com>
@yeahdongcn
Copy link
Contributor Author

Please move this into the pkg/server/serve.go

Done. @cf250024 @AlexsJones

@AlexsJones AlexsJones merged commit 8e37369 into k8sgpt-ai:main Aug 8, 2024
8 checks passed
ronaldpetty pushed a commit to ronaldpetty/k8sgpt that referenced this pull request Aug 17, 2024
Signed-off-by: Xiaodong Ye <yeahdongcn@gmail.com>
AlexsJones pushed a commit that referenced this pull request Oct 24, 2024
Signed-off-by: Xiaodong Ye <yeahdongcn@gmail.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

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