Skip to content

Geodesic shell wrongly treats $KUBECONFIG as a file #457

@raehik

Description

@raehik

what

  • geodesic.kube-ps1.sh turns kube-ps1 on and off automatically depending on kubecfg existence
  • but $KUBECONFIG isn't a file, it's a $PATH-like envvar (see K8s docs)

why

  • Geodesic shouldn't turn kube-ps1 off if $KUBECONFIG or the cached envvar isn't an existing file

Not sure exactly how to fix this - should probably use kubectl config instead though, that parses $KUBECONFIG and merges configs and such.

This came up because I was extending the $KUBECONFIG var to enable aws-iam-authenticator integration - writing to a file in /dev while building the container doesn't work because it's temporary.

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