Skip to content

Commit c3e2ffd

Browse files
committed
Add helm quick start
1 parent 1ed27f9 commit c3e2ffd

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

docs/components/quick-start-selector.tsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useState } from "react";
44
import { Check, Copy, Download, ExternalLink, X } from "lucide-react";
55

6-
type Method = "browser" | "binary" | "docker" | "cargo";
6+
type Method = "browser" | "binary" | "docker" | "cargo" | "helm";
77
type OS = "linux-x86_64" | "linux-arm64" | "macos-arm64" | "windows";
88
type Profile = "full" | "headless" | "standard" | "minimal" | "tiny";
99
type Libc = "gnu" | "musl";
@@ -109,6 +109,14 @@ function getInstallCommand(method: Method, os: OS, profile: Profile, libc: Libc)
109109
if (method === "cargo") {
110110
return `cargo install hadrian@${process.env.HADRIAN_VERSION}\nhadrian`;
111111
}
112+
if (method === "helm") {
113+
return [
114+
"git clone https://github.com/ScriptSmith/hadrian.git",
115+
"cd gateway/helm/hadrian",
116+
"helm dependency update",
117+
"helm install my-gateway . -n hadrian --create-namespace",
118+
].join("\n");
119+
}
112120
const ext = os === "windows" ? "zip" : "tar.gz";
113121
const target = getTarget(os, libc);
114122
const filename = `hadrian-${target}-${profile}.${ext}`;
@@ -219,10 +227,16 @@ export function QuickStartSelector() {
219227
Method
220228
</span>
221229
<ToggleGroup
222-
options={["binary", "browser", "docker", "cargo"] as Method[]}
230+
options={["binary", "browser", "docker", "helm", "cargo"] as Method[]}
223231
value={method}
224232
onChange={setMethod}
225-
labels={{ binary: "Binary", browser: "Browser", docker: "Docker", cargo: "Cargo" }}
233+
labels={{
234+
binary: "Binary",
235+
browser: "Browser",
236+
docker: "Docker",
237+
helm: "Helm",
238+
cargo: "Cargo",
239+
}}
226240
/>
227241
</div>
228242
{method === "binary" && (

0 commit comments

Comments
 (0)