Skip to content

Commit

Permalink
Update to version with sshmux
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Feb 5, 2024
1 parent 7bc54ab commit 1fe8965
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/spf13/cobra"
)

const inletsProDefaultVersion = "0.9.21"
const inletsProDefaultVersion = "0.9.25"
const inletsProControlPort = 8123

func init() {
Expand Down
12 changes: 6 additions & 6 deletions cmd/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ import (
)

func Test_MakeHTTPSUserdata_OneDomain(t *testing.T) {
got := MakeHTTPSUserdata("token", "0.9.21", "[email protected]", "prod", []string{"example.com"})
got := MakeHTTPSUserdata("token", "0.9.25", "[email protected]", "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 && \
Expand All @@ -37,19 +37,19 @@ 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", "[email protected]", "prod",
got := MakeHTTPSUserdata("token", "0.9.25", "[email protected]", "prod",
[]string{"a.example.com", "b.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 && \
Expand Down
2 changes: 1 addition & 1 deletion cmd/kfwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1fe8965

Please sign in to comment.