namespaces with numbers fail
Closed this issue · 2 comments
mark-armstrong commented
when namespaces are a number (e.g. "namespace":"973585995"), the quotes around the config are removed after changing contexts using KubeContext
kube config before using KubeContext
contexts:
- context:
cluster: somecluster
namespace: "973585995"
user: someuser
name: somename
kube config after using KubeContext
contexts:
- context:
cluster: somecluster
namespace: 973585995
user: someuser
name: somename
resulting in the following error:
$ kubectl config get-contexts
error: Error loading config file "/Users/mark/.kube/config": v1.Config.Contexts: []v1.NamedContext: v1.NamedContext.Context: v1.Context.Namespace: ReadString: expects " or n, but found 9, error found in #10 byte of ...|mespace":973585995,"|..., bigger context ...|ext"},{"context":{"cluster":"somecluster","namespace":973585995,"user":"someuser"},"name":"somename"},{"c|...
turkenh commented
@mark-armstrong sorry for late reply.
I could reproduce and found the root cause of the problem which is a (fixed) bug in the library we are using: jpsim/Yams#263
Updated to latest version and verified that issue is fixed.
mark-armstrong commented
love the app and appreciate the follow up, thanks @turkenh