Skip to content

#854: Fix Rancher Desktop path#2085

Open
laert-ll wants to merge 4 commits into
devonfw:mainfrom
laert-ll:bug/854-fix-rancher-desktop-path
Open

#854: Fix Rancher Desktop path#2085
laert-ll wants to merge 4 commits into
devonfw:mainfrom
laert-ll:bug/854-fix-rancher-desktop-path

Conversation

@laert-ll

@laert-ll laert-ll commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #854

Implemented changes:

  • Added fallback path resolution for Rancher Desktop CLI tools in ~/.rd/bin.
  • Added warning message for first time install.

Clarification: Rancher Desktop creates ~/.rd/bin and links its CLI tools (docker, kubectl, rdctl) there only after its first GUI launch. Therefore in order to launch docker or kubectl using IDEasy, we added a warning message for when the user tries to launch it without having launched the GUI first.


Testing instructions

  1. Have a working Linux environment running.
  2. Run ide kubectl and verify that the installation is successful that the warning appears.
  3. Open Rancher Desktop from the application menu.
  4. Run ide kubectl again and verify that it runs successfully.
  5. Repeat for docker.

Checklist for this PR

Make sure everything is checked before merging this PR. For further info please also see
our DoD.

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summarizes what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labeled
    with internal
  • You have formulated clear instructions on how to test your contribution under "Testing instructions"

@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board Jun 29, 2026
@laert-ll laert-ll changed the title Bug/854 fix rancher desktop path #854: Fix Rancher Desktop path Jun 29, 2026
@coveralls

coveralls commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 29005438306

Coverage decreased (-0.08%) to 72.104%

Details

  • Coverage decreased (-0.08%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 54 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

54 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/tools/ide/tool/docker/Docker.java 45 4.63%
com/devonfw/tools/ide/tool/kubectl/KubeCtl.java 9 15.0%

Coverage Stats

Coverage Status
Relevant Lines: 16727
Covered Lines: 12571
Line Coverage: 75.15%
Relevant Branches: 7474
Covered Branches: 4879
Branch Coverage: 65.28%
Branches in Coverage %: Yes
Coverage Strength: 3.18 hits per line

💛 - Coveralls

@laert-ll laert-ll self-assigned this Jun 29, 2026
@laert-ll laert-ll force-pushed the bug/854-fix-rancher-desktop-path branch from d1d4a3e to 4d139f6 Compare June 29, 2026 08:24
@laert-ll laert-ll marked this pull request as ready for review June 29, 2026 08:26
@laert-ll laert-ll moved this from 🆕 New to Team Review in IDEasy board Jun 29, 2026
@laert-ll laert-ll force-pushed the bug/854-fix-rancher-desktop-path branch from 4d139f6 to 5c91172 Compare June 29, 2026 08:31
@laert-ll laert-ll added docker docker and esp. DockerDesktop rancher Rancher-Desktop linux specific for linux OS (debian, ubunutu, suse, etc.) kubectl kubernetes command integration install installation process of IDE + tools and install commandlet labels Jun 29, 2026
@oanding-blrng oanding-blrng self-assigned this Jul 2, 2026
@laert-ll laert-ll force-pushed the bug/854-fix-rancher-desktop-path branch from ed23f9c to 3f8d714 Compare July 8, 2026 13:52
@laert-ll

laert-ll commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for testing this @oanding-blrng and raising the virtualization issue with WSL!

After some discussion, we came to the conclusion that it's currently not possible to launch rancher-desktop on WSL due to virtualization problems and therefore the symlink creation cannot be simulated there. However this part doesn't need testing IMHO due to the fact that its behavior is already confirmed here. In order to test that specific part, I would simply link the binaries manually to where rancher-desktop would normally link them:

mkdir -p ~/.rd/bin
ln -s /opt/rancher-desktop/resources/resources/linux/bin/kubectl ~/.rd/bin/kubectl
ln -s /opt/rancher-desktop/resources/resources/linux/bin/docker  ~/.rd/bin/docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker docker and esp. DockerDesktop install installation process of IDE + tools and install commandlet kubectl kubernetes command integration linux specific for linux OS (debian, ubunutu, suse, etc.) rancher Rancher-Desktop

Projects

Status: Team Review

Development

Successfully merging this pull request may close these issues.

Kubectl not working on linux

3 participants