-
Notifications
You must be signed in to change notification settings - Fork 157
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
panic: interface conversion: interface {} is nil, not string #124
Comments
Hi @swaroop1012, thanks for reporting this. Would you be able to share the complete output, incl. how you execute the kubent? This should help us to further debug the issue, thanks! |
Hi @stepanstipl thanks for the reply and apologies for the late reply, I missed the mail. I downloaded the tar file, unzipped it and ran the binary. Please find the full output below.
If I use the below command, I get the output without any error but I'm not sure if the list is exhaustive.
|
After a deeper investigation, we believe this bug has been fixed by a previous release. the line in question being: m["Namespace"].(string), PR which fixed it: https://github.com/doitintl/kube-no-trouble/pull/95/files Could you try again with the latest nightly and lets us know if the issue still occurs |
I'm getting the same error using nightly-0.4.0-83-g055df4e
|
Hi @joshclark, @swaroop1012,
You should get a log line starting with
I would really be interested to see that, and the relevant manifest from your cluster... i.e. in the example above it would be This should allow me to debug this further.. thanks 🙏 |
4:42PM TRC parsing +map[ApiVersion:extensions/v1beta1 Kind:DaemonSet Name:cattle-node-agent Namespace:cattle-system ReplaceWith:apps/v1 RuleSet:Deprecated APIs removed in 1.16 Since:1.9]
4:42PM TRC parsing +map[ApiVersion:extensions/v1beta1 Kind:Deployment Name:cattle-cluster-agent Namespace:cattle-system ReplaceWith:apps/v1 RuleSet:Deprecated APIs removed in 1.16 Since:1.9]
4:42PM TRC parsing +map[ApiVersion:apps/v1beta2 Kind:StatefulSet Name:azure-agent Namespace:azure-agent ReplaceWith:apps/v1 RuleSet:Deprecated APIs removed in 1.16 Since:1.9]
4:42PM TRC parsing +map[ApiVersion:extensions/v1beta1 Kind:DaemonSet Name:collection-fluent-bit Namespace:sumologic ReplaceWith:apps/v1 RuleSet:Deprecated APIs removed in 1.16 Since:1.9]
4:42PM TRC parsing +map[ApiVersion:extensions/v1beta1 Kind:DaemonSet Name:collection-falco Namespace:sumologic ReplaceWith:apps/v1 RuleSet:Deprecated APIs removed in 1.16 Since:1.9]
4:42PM TRC parsing +map[ApiVersion:apps/v1beta1 Kind:StatefulSet Name:rcm-journal-reporting-hardclose-service Namespace:<nil> ReplaceWith:apps/v1 RuleSet:Deprecated APIs removed in 1.16 Since:1.9]
panic: interface conversion: interface {} is nil, not string |
Add tests for extracted helm functions, and mainly for nil namespace that should cover #124
Thanks @joshclark, I believe I've found the issue. I have merged a fix (#198) and triggered a nightly build - can you test that one in your environment, to verify the issue is fixed? |
success! It works. Thanks |
Running into the below issue while running kubent, can someone help?
Go version - go1.15.5 darwin/amd64
kubent version - 0.3.2
The text was updated successfully, but these errors were encountered: