-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create symlink for podman in ~/.crc/bin/podman dir
earlier both oc and podman binaries were present in the ~/.crc/bin/oc dir and added to PATH by the `crc oc-env` command, which resulted in adding both the binaries to path when the user might want only the `oc` binary to be added to path by the `crc oc-env` command this adds the `podman` binary in a separate directory ~/.crc/bin/podman and is added to PATH by running the `crc podman-env` command fixes #4022
- Loading branch information
Showing
5 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,13 @@ var _ = Describe("podman preset", Serial, Ordered, Label("podman-preset"), func( | |
|
||
It("podman-env", func() { | ||
// Do what 'eval $(crc podman-env) would do | ||
path := os.ExpandEnv("${HOME}/.crc/bin/oc:$PATH") | ||
path := os.ExpandEnv("${HOME}/.crc/bin/podman:$PATH") | ||
csshk := os.ExpandEnv("${HOME}/.crc/machines/crc/id_ecdsa") | ||
dh := os.ExpandEnv("unix:///${HOME}/.crc/machines/crc/docker.sock") | ||
ch := "ssh://[email protected]:2222/run/user/1000/podman/podman.sock" | ||
if runtime.GOOS == "windows" { | ||
userHomeDir, _ := os.UserHomeDir() | ||
unexpandedPath := filepath.Join(userHomeDir, ".crc/bin/oc;${PATH}") | ||
unexpandedPath := filepath.Join(userHomeDir, ".crc/bin/podman;${PATH}") | ||
path = os.ExpandEnv(unexpandedPath) | ||
csshk = filepath.Join(userHomeDir, ".crc/machines/crc/id_ecdsa") | ||
dh = "npipe:////./pipe/crc-podman" | ||
|