kubectl invoked from incorrect location during bootstrap #349
Labels
kind/bug
Something isn't working
needs-priority
Indicates an issue or PR needs a priority assigning to it
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
One command in the cloud-init bootstrap is as follows:
The problem with this in the first place is that it relies on kubectl, making it a dependency in order to bootstrap.
I wonder if there is a better way to add this secret.
The other problem is that
kubectl
is not in PATH. This is not supported by RKE2 and it's going to fail on any RKE2 installation.As the documentation suggests,
/var/lib/rancher/rke2/bin/kubectl
should be used.However it's unclear to me if these CLI tools are going to stay or are just there for debugging/testing purposes. Using
/var/lib/rancher/rke2/bin/
may stop working unexpectedly because of that.Also be aware that this bug is currently silently failing due to #221
What did you expect to happen:
How to reproduce it:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
v0.3.0
/etc/os-release
):The text was updated successfully, but these errors were encountered: