Skip to content

Config loading fails #9

Closed
Closed
@olttwa

Description

@olttwa

kube-tmuxp fails to load config when path not given.

# Doesn't work
$ kube-tmuxp gen
Using config file: /Users/a/.kube-tmuxp.yaml
open : no such file or directory

$ cat /Users/a/.kube-tmuxp.yaml
projects:
  - name: gcp-project-name
    clusters:
      - name: k8s-cluster-name
        zone: zone-south1-b
        context: k8s-context
        envs:
          FOO: bar

# Works
$ cd ~; kube-tmuxp gen --config '.kube-tmuxp.yaml'
Using config file: .kube-tmuxp.yaml
Cluster: gojek-integration
Deleting exisiting context...
Adding context...
Fetching cluster endpoint and auth data.
kubeconfig entry generated for gojek-integration.
Renaming context...
Creating tmuxp config...

# Works
$ kube-tmuxp gen --config '/Users/a/.kube-tmuxp.yaml'
Using config file: /Users/a/.kube-tmuxp.yaml
Cluster: gojek-integration
Deleting exisiting context...
Adding context...
Fetching cluster endpoint and auth data.
kubeconfig entry generated for gojek-integration.
Renaming context...
Creating tmuxp config...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions