1620 Commits

Author SHA1 Message Date
Matt Farina
a4b6b72739 Merge pull request #769 from mattfarina/fix-win-crash
Restoring the integrations location on Windows
v0.6.0
2021-10-11 13:36:02 -04:00
Matt Farina
f30ff31930 Restoring the integrations location on Windows
Windows does not need this location but there are code paths that
do not handle an error being returned. There are multiple code paths
like this. Restoring the mac location, which has long been used.

In a future change, this can be removed and the other code paths fixed
to handle an error being returned.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-10-11 13:07:59 -04:00
Matt Farina
d6d3c68fb7 Merge pull request #747 from davidcassany/integration_and_packaging
Linux: Integration and packaging
2021-10-08 22:22:23 -04:00
Eric Promislow
5084f46cef Merge pull request #768 from rancher-sandbox/752-install-buildkitd-with-kim
Reinstate using `kim builder install` to get buildkit running correctly on the server
2021-10-08 15:14:36 -07:00
Eric Promislow
c67c70ea9c Reinstate using kim builder install to get buildkit running correctly on server
- Also drop the VM_READY state as we don't want to show the images page until it can
  also be used to build images. The extra minute or so to bring up the list of
  images reduces confusion for those users who want to build an image right away.

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-08 14:37:44 -07:00
Matt Farina
19e33b25c5 Merge pull request #761 from mook-as/wsl-stuck-mount
WSL: Deal with dangling /mnt/wsl/rancher-desktop
2021-10-08 16:01:55 -04:00
Matt Farina
d6d02f0577 Merge pull request #766 from rancher-sandbox/writable-mount
Make mounted HOME directory writable from inside the VM
2021-10-08 15:46:12 -04:00
Jan Dubois
5ffc70131d Make mounted HOME directory writable from inside the VM
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
2021-10-08 11:05:36 -07:00
David Cassany
cd3b23eb79 Add RPM and DEB targets to electron-builder
This commit adds RPM and DEB targets to the electron builder manifest
and uploads the result within the packaging workflow.

Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-08 10:52:05 +02:00
David Cassany
566302c32b Rename linux icons to electron-builder expectations
Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-08 10:52:05 +02:00
David Cassany
724b31e991 Add integration path in paths and set it to ~/.local/bin on Linux
Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-08 10:51:53 +02:00
Mark Yen
19d9f2087b WSL: Fix fetching integrations
We were previously always checking the rancher-desktop distribution for
kubeconfig integration (which is completely useless).

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-10-08 10:51:44 +02:00
Mark Yen
d6815f1142 Merge pull request #762 from mook-as/wsl-integration-fix-fetch
WSL: Fix fetching integrations
2021-10-07 16:54:36 -07:00
Mark Yen
eec785c12c WSL: Fix fetching integrations
We were previously always checking the rancher-desktop distribution for
kubeconfig integration (which is completely useless).

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-10-07 16:04:44 -07:00
Mark Yen
a1cddf3ed6 WSL: Deal with dangling /mnt/wsl/rancher-desktop
It's possible that our data mount still exists, but the underlying disk has
went away.  In that case, we can safely unmount it (because the device went
away, nobody can complain), and then re-mount it.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-10-07 15:34:59 -07:00
Mark Yen
671835c159 Merge pull request #748 from mattfarina/nerdctl-linux
Make nerdctl script work in both WSL and on native linux
2021-10-07 15:32:09 -07:00
Matt Farina
29929bc4a3 Merge pull request #753 from mook-as/wsl-reset
WSL: Don't wipe all of data on reset.
2021-10-07 17:16:59 -04:00
Matt Farina
29274197e8 Updating nerdctl script to use sh instead of bash
sh is required for WSL while bash is not. This makes the script
more widely usable

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-10-07 17:15:33 -04:00
Eric Promislow
0164c8b897 Merge pull request #750 from rancher-sandbox/add-vm-started-to-wsl
Tell WSL about the VM_STARTED state, parity with lima
2021-10-07 12:55:10 -07:00
Mark Yen
2b10752672 WSL: Don't wipe all of data on reset.
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-10-07 11:59:11 -07:00
Eric Promislow
fd87ad8bdc Tell WSL about the VM_STARTED state, parity with lima
- In practice, the time delta between this event and
  STARTED so short that it isn't noticeable to the eye

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-07 10:47:33 -07:00
Matt Farina
56f51eb8cc Make nerdctl script work in both WSL and on native linux
This will detect when linux is run in WSL or by itself to know
which method to talk to nerdctl.

Note, also removed debug output accidently left in.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-10-07 06:48:24 -04:00
Mark Yen
36c156dd85 Merge pull request #746 from rancher-sandbox/s-kim-images
no more kim.log please
2021-10-06 18:28:57 -07:00
Eric Promislow
027f1d26e1 Related: update old uses of logging/console
- These were done at the same time as logging/console
  was updated in a different branch

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 16:56:52 -07:00
Eric Promislow
18bdbcbf71 no more kim.log please
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 16:45:11 -07:00
Mark Yen
d2a647489b Merge pull request #744 from mook-as/k3s-blacklist-1.22
K3s: Skip version 1.22+
2021-10-06 15:50:51 -07:00
Mark Yen
57a2523daa K3s: Skip version 1.22+
There's an issue with k3s 1.22; skip it for now.  We will need to redo the
version fetching to be based on the k3s channel server instead later.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-10-06 15:24:51 -07:00
Matt Farina
01465d2843 Merge pull request #743 from rancher-sandbox/742-set-image-processor-namespace
Set the current namespace on the image-processor
2021-10-06 17:22:11 -04:00
Eric Promislow
c8f5bc6723 Set the current namespace on the image-processor
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 13:50:35 -07:00
Eric Promislow
e6e1bee2ef Merge pull request #709 from rancher-sandbox/697-migrate-from-kim-to-nerdctl
697 migrate from kim to nerdctl
2021-10-06 13:26:32 -07:00
Eric Promislow
531cddd15d More review-based fixes:
1. Simplify processing of `nerdctl images` output
   - stop culling possible multiple entries
   - use `localeCompare` to simplify sorting of entries
2. Simplify processing of `nerdctl namespaces` output
3. Delete `src/ks8-engine/kim.ts` again -- I let it back in while rebasing.

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:37:53 -07:00
Eric Promislow
4aad85e766 Pull in a change from a rebase into a moved file
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:36:07 -07:00
Eric Promislow
21194a5b3c prefer the long form for command-line options in code
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:36:07 -07:00
Eric Promislow
a271c00799 Push the namespace arg into runImagesCommand
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:36:07 -07:00
Eric Promislow
ab4253eba7 simplify the constructor
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:36:07 -07:00
Eric Promislow
53917d1622 More corrections
- Stop self-importing
- Document public methods in an exported class

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:36:06 -07:00
Eric Promislow
ae6d6efbb9 Add an ImageProcessorName type
- Used to validate the name passed to `createImageProcessor`
- Also add some misc. missing types and comments

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:36:05 -07:00
Eric Promislow
5c424f2cbd Explain why the UI sometimes needs to request the namespaces
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:29 -07:00
Eric Promislow
12a2917d3d correct an event type
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:29 -07:00
Eric Promislow
4619106483 Use lower-case for markdown link labels
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:29 -07:00
Eric Promislow
29cced50bd Add a clarifying comment on the image processor name
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:27 -07:00
Eric Promislow
ffc13f29ac Fix an error in the K8s state
- Final state should be STARTED, not VM_STARTED

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:01 -07:00
Eric Promislow
0cde9b3f84 Unlink managed kim link on factory-reset
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:01 -07:00
Eric Promislow
b758f68cf1 Add that this tool can be used to run containers
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:00 -07:00
Eric Promislow
df2d9b4fde Always use images- for the start of an event name, not image-
- Also keep all the images handlers in the image events region in the
  typescript event definition file.

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:00 -07:00
Eric Promislow
4a33668895 Misc. fixes
- No explicit catch handler needed for `relayImageProcessorNamespaces`
- Use `Intl.Collator` instead of `string.toLowerCase().localeCompare...`
- Add awaits for dialog boxes

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:00 -07:00
Eric Promislow
cd57cc616c remove unused util
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:00 -07:00
Eric Promislow
b6a7cbb41e Fix the alignment of the three image-list widgets
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:00 -07:00
Eric Promislow
3b278a327a Add a VM_STARTED state
* This is the point where containerd is running, so we can get images
* Change UI so it no longer suggests the image manager is dependent on Kubernetes.

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:00 -07:00
Eric Promislow
e58eabdc45 Drop more references to Kim, including in the READMEs
- Most of the time use a generic, "image"-related name
- Update the READMEs

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-10-06 12:35:00 -07:00