upbound / up

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

[proposal]: Align config and profiles with kubeconfig semantics #452

Open tnthornton opened 3 months ago

tnthornton commented 3 months ago

What problem are you facing?

As usage has grown for up, we've gone through a few different phases of attempts to manage authentication/contexts with different systems:

This has left us in a state where:

How could Upbound help solve your problem?

This issue proposes that we replace the config and profile constructs with kubeconfig semantics:

Within the kubeconfig, we could:

In general this will benefit current consumers and future consumers:

  1. For those familiar with kubectl, they get a familiar API to work against.
  2. If you're working with a control plane or a space, bouncing between up and kubectl becomes less of a mental switch.
AlainRoy commented 3 months ago

I love the idea that you're thinking this through!!! ❤️ I agree that this is one of the more confusing bits of the up CLI.

I'm not an expert with the Kubeconfig schema, so a couple of questions that may be stupid:

tnthornton commented 3 months ago

@AlainRoy all good questions. I think we have a number of options with how we could address those concerns/questions. If we get buy in that this is reasonable enough to move to do a one pager/POC, we can explore possible answers to each of those.