Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honour the --skip-install flag with --local #321

Closed
alexellis opened this issue Apr 13, 2021 · 6 comments
Closed

Honour the --skip-install flag with --local #321

alexellis opened this issue Apr 13, 2021 · 6 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alexellis
Copy link
Owner

Expected Behaviour

The --local flag for k3sup install doesn't honour --skip-install.

Current Behaviour

--skip-install should allow the user to get the correct kubeconfig, without doing an installation

Possible Solution

Add an if statement

Steps to Reproduce (for bugs)

  1. k3sup install --local --skip-install
  2. See that it still installs
@alexellis
Copy link
Owner Author

/add label: good first issue, help wanted

@derek derek bot added good first issue Good for newcomers help wanted Extra attention is needed labels Dec 9, 2021
@alexellis
Copy link
Owner Author

Hey @Jasstkn, would you be interested in taking this on? I think it'd be a quick win for you.

@Jasstkn
Copy link

Jasstkn commented Aug 26, 2022

Hey @Jasstkn, would you be interested in taking this on? I think it'd be a quick win for you.

Hey! Yes, I would like to try :)

@Jasstkn
Copy link

Jasstkn commented Aug 26, 2022

@alexellis @Shikachuu hey. I started looking into the issue and want to reproduce it. I created a VM in GCP and trying to install k8s cluster via command:

export IP=12.34.56.78
./k3sup install --ip $IP --user mariarti --ssh-key ~/.ssh/general.pub
Error: trying to get ip value of flag of type string

But it fails with unexpected result. I'm trying to debug it but nothing useful so far. Maybe you have some suggestions where to look?

upd: if I run it will --local flag and params - it seems to be working

@alexellis
Copy link
Owner Author

alexellis commented Aug 26, 2022

This may be an unintentional regression in c0a4833.

@alexellis
Copy link
Owner Author

alexellis commented Aug 26, 2022

@Jasstkn if k3sup install --local --skip-install is actually skipping the installation of k3sup now, then I'd say we can close this issue. Interestingly, I ran the command on a Multipass Ubuntu VM where k3sup hadn't been installed and it still tried to create an empty kubeconfig for me:

k3sup install --local --skip-install
Running: k3sup install
2022/08/26 22:22:54 127.0.0.1
Skipping local installation
Saving file to: /home/ubuntu/kubeconfig

# Test your cluster with:
export KUBECONFIG=/home/ubuntu/kubeconfig
kubectl config set-context default
kubectl get node -o wide

It should probably error out instead for that scenario.

Nobody's comment on #389 yet to say that they've started working on it. There are two parts to it with the second being more involved (as per the screenshot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants