From a183cca27d6cd0eb52efbdbf76eeeb416e2af1d9 Mon Sep 17 00:00:00 2001 From: Richard Gee Date: Mon, 6 Oct 2025 20:57:36 +0100 Subject: [PATCH 1/2] fix: increase k8s ver strat timeout to 10 Signed-off-by: Richard Gee --- pkg/get/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/get/get.go b/pkg/get/get.go index c60cf281a..179dc6786 100644 --- a/pkg/get/get.go +++ b/pkg/get/get.go @@ -83,7 +83,7 @@ var releaseLocations = map[string]ReleaseLocation{ }, k8sVersionStrategy: { Url: "https://cdn.dl.k8s.io/release/stable.txt", - Timeout: time.Second * 5, + Timeout: time.Second * 10, Method: http.MethodGet, }, } From 6df799d60833803dd6718ea66d32c17fe2890b5a Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Fri, 17 Oct 2025 08:35:44 +0100 Subject: [PATCH 2/2] Add alexellis/discord-updater Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- README.md | 3 ++- pkg/get/get_test.go | 35 +++++++++++++++++++++++++++++++++++ pkg/get/tools.go | 17 +++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f7171fe7..387dc04db 100644 --- a/README.md +++ b/README.md @@ -790,6 +790,7 @@ There are 53 apps that you can install on your cluster. | [crossplane](https://github.com/crossplane/crossplane) | Simplify some development and administration aspects of Crossplane. | | [dagger](https://github.com/dagger/dagger) | A portable devkit for CI/CD pipelines. | | [devpod](https://github.com/loft-sh/devpod) | Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker. | +| [discord-updater](https://github.com/alexellis/discord-updater) | Discord updater tool. | | [devspace](https://github.com/devspace-sh/devspace) | Automate your deployment workflow with DevSpace and develop software directly inside Kubernetes. | | [dive](https://github.com/wagoodman/dive) | A tool for exploring each layer in a docker image | | [docker-compose](https://github.com/docker/compose) | Define and run multi-container applications with Docker. | @@ -935,6 +936,6 @@ There are 53 apps that you can install on your cluster. | [waypoint](https://github.com/hashicorp/waypoint) | Easy application deployment for Kubernetes and Amazon ECS | | [yq](https://github.com/mikefarah/yq) | Portable command-line YAML processor. | | [yt-dlp](https://github.com/yt-dlp/yt-dlp) | Fork of youtube-dl with additional features and fixes | -There are 174 tools, use `arkade get NAME` to download one. +There are 175 tools, use `arkade get NAME` to download one. > Note to contributors, run `go build && ./arkade get --format markdown` to generate this list diff --git a/pkg/get/get_test.go b/pkg/get/get_test.go index fca8136bb..ca50060ec 100644 --- a/pkg/get/get_test.go +++ b/pkg/get/get_test.go @@ -900,6 +900,41 @@ func Test_DownloadDevspace(t *testing.T) { } } +func Test_DownloadDiscordUpdater(t *testing.T) { + tools := MakeTools() + name := "discord-updater" + + tool := getTool(name, tools) + + tests := []test{ + {os: "linux", + arch: arch64bit, + version: "v0.0.2", + url: "https://github.com/alexellis/discord-updater/releases/download/v0.0.2/discord-updater"}, + {os: "linux", + arch: archARM64, + version: "v0.0.2", + url: "https://github.com/alexellis/discord-updater/releases/download/v0.0.2/discord-updater-arm64"}, + {os: "mingw64_nt-10.0-18362", + arch: arch64bit, + version: "v0.0.2", + url: "https://github.com/alexellis/discord-updater/releases/download/v0.0.2/discord-updater-not-available"}, + {os: "darwin", + arch: arch64bit, + version: "v0.0.2", + url: "https://github.com/alexellis/discord-updater/releases/download/v0.0.2/discord-updater-not-available"}, + } + for _, tc := range tests { + got, err := tool.GetURL(tc.os, tc.arch, tc.version, false) + if err != nil { + t.Fatal(err) + } + if got != tc.url { + t.Fatalf("want: %s, got: %s", tc.url, got) + } + } +} + func Test_DownloadTilt(t *testing.T) { tools := MakeTools() name := "tilt" diff --git a/pkg/get/tools.go b/pkg/get/tools.go index f1e18301c..0ec0363ff 100644 --- a/pkg/get/tools.go +++ b/pkg/get/tools.go @@ -353,6 +353,23 @@ https://dl.k8s.io/release/{{.Version}}/bin/{{$os}}/{{$arch}}/kubectl{{$ext}}`}) {{- end -}}`, }) + tools = append(tools, + Tool{ + Owner: "alexellis", + Repo: "discord-updater", + Name: "discord-updater", + Description: "Discord updater tool.", + BinaryTemplate: `{{$binary := "discord-updater-not-available"}} +{{- if eq .OS "linux" -}} + {{- if eq .Arch "aarch64" -}} + {{$binary = "discord-updater-arm64"}} + {{- else -}} + {{$binary = "discord-updater"}} + {{- end -}} +{{- end -}} +{{$binary}}`, + }) + tools = append(tools, Tool{ Owner: "tilt-dev",