From 08e213282d6876cd0b5534788eb1720c05293463 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Sat, 1 Feb 2025 08:46:44 +0000 Subject: [PATCH] Update image in code to 0.9.40 The version in the chart is already the latest, however there is a fallback version in the code that can be updated. That's what's happening here. Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- image_test.go | 12 ++++++------ main.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/image_test.go b/image_test.go index 9b3e0d4e..d48ed836 100644 --- a/image_test.go +++ b/image_test.go @@ -13,7 +13,7 @@ func Test_GetInletsReleaseDefault(t *testing.T) { got := c.GetInletsRelease() - want := "0.9.31" + want := "0.9.40" if got != want { t.Fatalf("want %s, but got %s", want, got) } @@ -24,14 +24,14 @@ func Test_GetInletsReleaseOverride(t *testing.T) { c := InfraConfig{ ProConfig: InletsProConfig{ License: "non-empty", - InletsRelease: "0.9.31", + InletsRelease: "0.9.40", }, AccessKey: "key", } got := c.GetInletsRelease() - want := "0.9.31" + want := "0.9.40" if got != want { t.Fatalf("want %s, but got %s", want, got) @@ -48,7 +48,7 @@ func Test_InletsClientImageDefault(t *testing.T) { } got := c.GetInletsClientImage() - want := "ghcr.io/inlets/inlets-pro:0.9.31" + want := "ghcr.io/inlets/inlets-pro:0.9.40" if got != want { t.Fatalf("want %s, but got %s", want, got) } @@ -59,13 +59,13 @@ func Test_InletsClientImageOverride(t *testing.T) { c := InfraConfig{ ProConfig: InletsProConfig{ License: "non-empty", - ClientImage: "alexellis2/inlets-pro:0.9.5", + ClientImage: "alexellis2/inlets-pro:0.9.40", }, AccessKey: "key", } got := c.GetInletsClientImage() - want := "alexellis2/inlets-pro:0.9.5" + want := "alexellis2/inlets-pro:0.9.40" if got != want { t.Fatalf("want %s, but got %s", want, got) diff --git a/main.go b/main.go index 0b17ce15..cd3c18eb 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func init() { flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.") } -const defaultRelease = "0.9.31" +const defaultRelease = "0.9.40" func main() { infra := &InfraConfig{