k3sup icon indicating copy to clipboard operation
k3sup copied to clipboard

Add `--merge` flag to `k3sup plan` command

Open DaruZero opened this issue 1 year ago • 2 comments

Why do you need this?

I use the plan command to automate bootstrapping many clusters, and it would be useful to add --merge flag to the resulting script in order to avoid manually merging the kubeconfig.

Expected Behaviour

Running the bootstrap script should require as little additional steps as possible.

Current Behaviour

After bootstrapping a cluster, I need to manually merge the new kubeconfig with the default one

Possible Solution

Add the --merge flag to the plan command, that would simply add the same --merge flag to the install command in the generated bootstrap script

Your Environment

  • k3sup version: 0.13.6
k3sup version

Do you want to work on this?

Subject to design approval, are you willing to work on a Pull Request for this issue or feature request?

  • [x] Yes
  • [ ] No

DaruZero avatar Jul 30 '24 08:07 DaruZero

Hi @DaruZero please see the other comment I made here: https://github.com/alexellis/k3sup/issues/436#issuecomment-2273623928

If you'd like to send a pull request you can go ahead.

alexellis avatar Aug 07 '24 14:08 alexellis

Yes, I'd like to work on this. I'll probably open a PR in a few days

DaruZero avatar Aug 19 '24 12:08 DaruZero

/close: implemented in https://github.com/alexellis/k3sup/commit/8602af8b8d078f4a2ed97c23cace840dd8a12864

rgee0 avatar Jun 26 '25 10:06 rgee0