lens icon indicating copy to clipboard operation
lens copied to clipboard

strange field in syncKubeconfigEntries (lens-user-store.json)

Open jim-docker opened this issue 2 years ago • 0 comments

Seeing failed serializations(?)

		"syncKubeconfigEntries": [
			{
				"0": {
					"0": {
						"0": {
							"0": {
								"0": {
									"0": {}
								}
							}
						}
					}
				},
				"filePath": "/Users/bob/.kube"
			},
			{
				"0": {
					"0": {
						"0": {
							"0": {
								"0": {}
							}
						}
					}
				},
				"filePath": "/Users/bob/Downloads"
			},
			{
				"filePath": "/Users/bob/cnab"
			}
		],

Not sure what causes it, but could impact performance(?)

It seems to add this field to existing entries when a new entry is added Before:

		"syncKubeconfigEntries": [
			{
				"filePath": "/Users/bob/.kube"
			},
			{
				"filePath": "/Users/bob/Downloads"
			},
			{
				"filePath": "/Users/bob/cnab"
			}
		],

Result after adding osmstuff path:

		"syncKubeconfigEntries": [
			{
				"0": {},
				"filePath": "/Users/bob/.kube"
			},
			{
				"0": {},
				"filePath": "/Users/bob/Downloads"
			},
			{
				"0": {},
				"filePath": "/Users/bob/cnab"
			},
			{
				"filePath": "/Users/bob/osmstuff"
			}
		],

jim-docker avatar Feb 28 '22 19:02 jim-docker