Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ const PRESETS: ProviderPreset[] = [
description: "Kubernetes clusters",
category: "Remote",
},
{
name: "harvester",
description: "Harvester HCI clusters",
category: "Remote",
},
{ name: "aws", description: "Amazon Web Services", category: "Cloud" },
{ name: "gcloud", description: "Google Cloud Platform", category: "Cloud" },
{ name: "azure", description: "Microsoft Azure", category: "Cloud" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,29 @@ describe("ProviderWizard", () => {
page.unmount()
})

it("selects Harvester once as a remote preset when the catalog also lists it", async () => {
providerAvailable.mockResolvedValue(["harvester", "terraform"])
const page = renderWizard()
const preset = screen.getByRole("button", {
name: /harvester Harvester HCI clusters/,
})
expect(
screen.getByRole("region", { name: "Remote" }).contains(preset),
).toBe(true)
await screen.findByRole("button", { name: /terraform/ })
expect(screen.getAllByRole("button", { name: /harvester/ })).toHaveLength(1)
await fireEvent.click(preset)
await fireEvent.click(screen.getByRole("button", { name: "Continue" }))
await waitFor(() => {
expect(providerAdd).toHaveBeenCalledExactlyOnceWith(
"harvester",
undefined,
false,
)
})
page.unmount()
})

it("keeps custom sources usable when provider discovery fails and can retry", async () => {
providerAvailable
.mockRejectedValueOnce(new Error("catalog unavailable"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Providers you can add:
- [Docker (docker)](https://github.com/devsy-org/devsy/tree/main/providers/docker)
- [Podman (podman)](https://github.com/devsy-org/devsy/tree/main/providers/podman)
- [Kubernetes (kubernetes)](https://github.com/devsy-org/devsy/tree/main/providers/kubernetes)
- [Harvester (harvester)](https://github.com/devsy-org/devsy-provider-harvester)
- [Apple (apple)](https://github.com/devsy-org/devsy/tree/main/providers/apple)
- [MicroSandbox (microsandbox)](https://github.com/devsy-org/devsy-provider-microsandbox)
- [Lima (lima)](https://github.com/devsy-org/devsy-provider-lima)
Expand Down Expand Up @@ -63,6 +64,17 @@ devsy provider add ../devsy-provider-mock/provider.yaml
devsy provider add https://github.com/devsy-org/devsy-provider-ssh/releases/download/v0.0.3/provider.yaml
```

### Harvester

```sh
devsy provider add harvester
```

The [Harvester provider](https://github.com/devsy-org/devsy-provider-harvester)
needs a cluster kubeconfig, an imported guest image, and a VM network
reachable from the Devsy client. The guest must run SSH and Docker. See the
provider repository for cloud-init and image selection setup.

### MicroSandbox

```sh
Expand Down
Loading