From 1fe8965e5a612b154627d163477f2bfdf09409f7 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Mon, 5 Feb 2024 22:38:40 +0100 Subject: [PATCH] Update to version with sshmux Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- cmd/create.go | 2 +- cmd/create_test.go | 12 ++++++------ cmd/kfwd.go | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/create.go b/cmd/create.go index b41d85b7..3d63727c 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -19,7 +19,7 @@ import ( "github.com/spf13/cobra" ) -const inletsProDefaultVersion = "0.9.21" +const inletsProDefaultVersion = "0.9.25" const inletsProControlPort = 8123 func init() { diff --git a/cmd/create_test.go b/cmd/create_test.go index fd880f5f..cd070586 100644 --- a/cmd/create_test.go +++ b/cmd/create_test.go @@ -9,18 +9,18 @@ import ( ) func Test_MakeHTTPSUserdata_OneDomain(t *testing.T) { - got := MakeHTTPSUserdata("token", "0.9.21", "contact@example.com", "prod", []string{"example.com"}) + got := MakeHTTPSUserdata("token", "0.9.25", "contact@example.com", "prod", []string{"example.com"}) os.WriteFile("/tmp/t.txt", []byte(got), 0600) want := `#!/bin/bash export AUTHTOKEN="token" export IP=$(curl -sfSL https://checkip.amazonaws.com) -curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.21/inlets-pro -o /tmp/inlets-pro && \ +curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro -o /tmp/inlets-pro && \ chmod +x /tmp/inlets-pro && \ mv /tmp/inlets-pro /usr/local/bin/inlets-pro -curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.21/inlets-pro-http.service -o inlets-pro.service && \ +curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro-http.service -o inlets-pro.service && \ mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \ echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \ echo "IP=$IP" >> /etc/default/inlets-pro && \ @@ -37,7 +37,7 @@ curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.21/inlets- } func Test_MakeHTTPSUserdata_TwoDomains(t *testing.T) { - got := MakeHTTPSUserdata("token", "0.9.21", "contact@example.com", "prod", + got := MakeHTTPSUserdata("token", "0.9.25", "contact@example.com", "prod", []string{"a.example.com", "b.example.com"}) os.WriteFile("/tmp/t.txt", []byte(got), 0600) @@ -45,11 +45,11 @@ func Test_MakeHTTPSUserdata_TwoDomains(t *testing.T) { export AUTHTOKEN="token" export IP=$(curl -sfSL https://checkip.amazonaws.com) -curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.21/inlets-pro -o /tmp/inlets-pro && \ +curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro -o /tmp/inlets-pro && \ chmod +x /tmp/inlets-pro && \ mv /tmp/inlets-pro /usr/local/bin/inlets-pro -curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.21/inlets-pro-http.service -o inlets-pro.service && \ +curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro-http.service -o inlets-pro.service && \ mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \ echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \ echo "IP=$IP" >> /etc/default/inlets-pro && \ diff --git a/cmd/kfwd.go b/cmd/kfwd.go index 1fb7e6a4..e1585500 100644 --- a/cmd/kfwd.go +++ b/cmd/kfwd.go @@ -330,7 +330,7 @@ spec: spec: containers: - name: inlets - image: ghcr.io/inlets/inlets-pro:0.9.21 + image: ghcr.io/inlets/inlets-pro:0.9.25 imagePullPolicy: IfNotPresent command: ["inlets-pro"] args: