Closed daxmc99 closed 2 years ago
Kubeconfig (with redacted creds/endpoints) would be very helpful.
Heavily redacted kubeconfig. Most of the fields that appear duplicated are unique.
Happy to help with this, not very familiar with Swift though 😞
getting exactly the same error
Me too: (tried the AppStore
and Release
version
Could not parse selected kubeconfig file
typeMismatch(Yams.Node.Mapping, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "clusters", intValue: nil), _YAMLCodingKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "cluster", intValue: nil), CodingKeys(stringValue: "extensions", intValue: nil)], debugDescription: "Expected to decode Mapping but found Node instead.", underlyingError: nil))
You can use this YAML for testing:
apiVersion: v1
clusters:
- cluster:
certificate-authority: /Users/jan/.minikube/ca.crt
extensions:
- extension:
last-update: Thu, 21 Oct 2021 00:06:27 CEST
provider: minikube.sigs.k8s.io
version: v1.23.2
name: cluster_info
server: https://127.0.0.1:56524
name: minikube
- cluster:
certificate-authority-data: k234jh5k3j4hkl2j34w34tlagmöo43öict9qwp4t9w0mpz8w4p9z8w3px409pw8mznp9tw83ztv8nqc4xpu,84tnz34tü3qnm3öa934ntpc8bz38
server: https://127.0.0.1:6443
name: rancher-desktop
contexts:
- context:
cluster: minikube
extensions:
- extension:
last-update: Thu, 21 Oct 2021 00:06:27 CEST
provider: minikube.sigs.k8s.io
version: v1.23.2
name: context_info
namespace: default
user: minikube
name: minikube
- context:
cluster: rancher-desktop
user: rancher-desktop
name: rancher-desktop
current-context: rancher-desktop
kind: Config
preferences: {}
users:
- name: minikube
user:
client-certificate: /Users/jan/.minikube/profiles/minikube/client.crt
client-key: /Users/jan/.minikube/profiles/minikube/client.key
- name: rancher-desktop
user:
client-certificate-data: kj3hkjhkjh3l4kj5h3lk4jh5k45jölkjsjfdkjsöseglk54j
client-key-data: 3kj45h6lkj45hl36kj4h5l6k3jh45lkjznrlksgjöw3oirjöfger=
Closed with https://github.com/turkenh/KubeContext/pull/13
I get this alert after using minikube to set the context