Skip to content

Commit

Permalink
Update image in code to 0.9.40
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
alexellis committed Feb 1, 2025
1 parent ad66306 commit 08e2132
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
Expand All @@ -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)
}
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 08e2132

Please sign in to comment.