Skip to content

Commit ccc4035

Browse files
committed
Use inlets 0.9.31 for server/client
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent c9587bc commit ccc4035

File tree

6 files changed

+25
-16
lines changed

6 files changed

+25
-16
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,10 @@ verify-chart:
9292

9393
.PHONY: upgrade-chart
9494
upgrade-chart:
95-
@echo Upgrading helm chart images && \
96-
arkade chart upgrade --verbose=$(VERBOSE) -f ./chart/inlets-operator/values.yaml -w
95+
@echo Upgrading helm chart images in remote registries && \
96+
arkade chart upgrade --verbose=$(VERBOSE) -f ./chart/inlets-operator/values.yaml --write
97+
98+
.PHONY: bump-chart
99+
bump-chart:
100+
@echo Bumping helm chart version if needed && \
101+
arkade chart bump --verbose=$(VERBOSE) -f ./chart/inlets-operator/values.yaml --write

chart/inlets-operator/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ and can be overwritten via the helm `--set` flag.
7979
Parameter | Description | Default value
8080
--- | --- | ---
8181
`annotatedOnly` | Only create tunnels for LoadBalancer with a `operator.inlets.dev/manage=1` annotation | `false`
82-
`inletsClientImage` | Docker image for the inlets client | See values.yaml
83-
`image` | Docker image for the inlets-operator | See values.yaml
82+
`inletsclient.Image` | Container image for the inlets client when deployed inside K8s | See values.yaml
83+
`image` | Container image for the inlets-operator | See values.yaml
84+
`inletsRelease` | Release version of inlets for tunnel server VMs run via systemd | See values.yaml
8485
`secretKeyFile` | If we are using a provider that requires a secret key as well as an access key, set to `/var/secrets/inlets/secret/inlets-secret-key` | `""`
8586
`affinity` | Node affinity policy | `{}`
8687
`nodeSelector` | Node labels for data pod assignment | `{}`
8788
`tolerations` | Node tolerations | `[]`
8889
`resources` | Operator resources requests & limits | `{"requests":{"cpu": "100m", "memory": "128Mi"}}`
8990
`accessKeyFile` | Read the access key for your infrastructure provider from a file (recommended) | `/var/secrets/inlets/inlets-access-key`
90-
`inletsRelease` |Release version of inlets for tunnel servers | See values.yaml
9191
`subnetId` | The Subnet ID where the exit-server should be placed (EC2) | `""`
9292
`vpcId` | The VPC ID to create the exit-server in (EC2) | `""`
9393
`plan` | The plan or size for your cloud instance | different defaults, depending of the infrastructure provider

chart/inlets-operator/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ spec:
4747
{{- if .Values.organizationID }}
4848
- "-organization-id={{.Values.organizationID}}"
4949
{{- end }}
50-
{{- if .Values.inletsClientImage }}
51-
- "-client-image={{.Values.inletsClientImage}}"
50+
{{- if .Values.inletsClient.image }}
51+
- "-client-image={{.Values.inletsClient.image}}"
5252
{{- end }}
5353
{{- if .Values.inletsRelease }}
5454
- "-inlets-release={{.Values.inletsRelease}}"

chart/inlets-operator/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ region: "lon1"
1212
# Required when using a network driver that uses IPVS instead of iptables
1313
annotatedOnly: false
1414

15+
# These two versions should match for the client and server
16+
# For the client which will run as a Deployment in Kubernetes
17+
inletsClient:
18+
image: "ghcr.io/inlets/inlets-pro:0.9.31"
19+
20+
# For the server which will run a binary via systemd
21+
inletsRelease: "0.9.31"
22+
1523
#plan: <The plan or size for your cloud instance>
1624

1725
# provider: "gce"
@@ -44,10 +52,6 @@ subnetId: ""
4452
image: "ghcr.io/inlets/inlets-operator:0.17.7"
4553
pullPolicy: "IfNotPresent"
4654

47-
# These should match
48-
inletsClientImage: "ghcr.io/inlets/inlets-pro:0.9.23"
49-
inletsRelease: "0.9.23"
50-
5155
nameOverride: ""
5256
fullnameOverride: ""
5357

image_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func Test_GetInletsReleaseDefault(t *testing.T) {
1313

1414
got := c.GetInletsRelease()
1515

16-
want := "0.9.14"
16+
want := "0.9.31"
1717
if got != want {
1818
t.Fatalf("want %s, but got %s", want, got)
1919
}
@@ -24,14 +24,14 @@ func Test_GetInletsReleaseOverride(t *testing.T) {
2424
c := InfraConfig{
2525
ProConfig: InletsProConfig{
2626
License: "non-empty",
27-
InletsRelease: "0.9.14",
27+
InletsRelease: "0.9.31",
2828
},
2929
AccessKey: "key",
3030
}
3131

3232
got := c.GetInletsRelease()
3333

34-
want := "0.9.14"
34+
want := "0.9.31"
3535

3636
if got != want {
3737
t.Fatalf("want %s, but got %s", want, got)
@@ -48,7 +48,7 @@ func Test_InletsClientImageDefault(t *testing.T) {
4848
}
4949

5050
got := c.GetInletsClientImage()
51-
want := "ghcr.io/inlets/inlets-pro:0.9.14"
51+
want := "ghcr.io/inlets/inlets-pro:0.9.31"
5252
if got != want {
5353
t.Fatalf("want %s, but got %s", want, got)
5454
}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func init() {
3838
flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
3939
}
4040

41-
const defaultRelease = "0.9.14"
41+
const defaultRelease = "0.9.31"
4242

4343
func main() {
4444
infra := &InfraConfig{

0 commit comments

Comments
 (0)