upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

Remove default loading rules for explicit paths #563

Closed RedbackThomson closed 3 weeks ago

RedbackThomson commented 3 weeks ago

Description of your changes

Fixes https://github.com/upbound/up/issues/562

With some Github searching, I found another project that sets the explicit output path here: https://github.com/kubernetes-sigs/kwok/blob/4f5fb135109ce234d8ccdb185ed041647bc4dd90/pkg/utils/kubeconfig/kubeconfig.go#L129-L132

I have:

How has this code been tested

$ ./_output/bin/darwin_arm64/up ctx upbound/upbound-aws-us-east-1/default/michael-test -f ../here.yaml
Switched kubeconfig context to: Upbound upbound/upbound-aws-us-east-1/default/michael-test
$ ls .. | grep here.yaml
here.yaml