Skip to content

invalid type when loading null values from config when clusters is null #171

@giggio

Description

@giggio

I have several config files, and the following ~/.kube/config:

apiVersion: v1
clusters: null
contexts: null
current-context: cluster1
kind: Config
preferences: {}
users: null

Kubie fails with:

Error loading kubeconfig /home/user/.kube/config: clusters: invalid type: unit value, expected a sequence at line 2 column 11
Error: Could not find any contexts in the Kubie kubeconfig directories!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions