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

Better logs #213

Merged
merged 3 commits into from
Jul 1, 2024
Merged

Better logs #213

merged 3 commits into from
Jul 1, 2024

Conversation

edznux-dd
Copy link
Contributor

This PR add some logs around error handling, fixes some small issues and add some text at the end of ingestion to point to the UI.

@edznux-dd edznux-dd requested a review from a team as a code owner July 1, 2024 07:27
jt-dd
jt-dd previously approved these changes Jul 1, 2024
Copy link
Contributor

@jt-dd jt-dd left a comment

Choose a reason for hiding this comment

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

nit

cmd/kubehound/root.go Outdated Show resolved Hide resolved
cmd/kubehound/root.go Outdated Show resolved Hide resolved
Comment on lines +75 to +77
if clusterName == "" {
return nil, errors.New("Cluster name is empty. Did you forget to set `KUBECONFIG` or use `kubectx` to select a cluster?")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you ever got in this situation ? (wondering)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did when testing a few thing starting from my personal PC that never connected to k8s.

@edznux-dd edznux-dd merged commit b8baea2 into main Jul 1, 2024
7 checks passed
@edznux-dd edznux-dd deleted the edouard/better-logs branch July 1, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants