Skip to content

Commit

Permalink
Use inlets 0.9.31 for server/client
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 Jun 10, 2024
1 parent c9587bc commit ccc4035
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 16 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,10 @@ verify-chart:

.PHONY: upgrade-chart
upgrade-chart:
@echo Upgrading helm chart images && \
arkade chart upgrade --verbose=$(VERBOSE) -f ./chart/inlets-operator/values.yaml -w
@echo Upgrading helm chart images in remote registries && \
arkade chart upgrade --verbose=$(VERBOSE) -f ./chart/inlets-operator/values.yaml --write

.PHONY: bump-chart
bump-chart:
@echo Bumping helm chart version if needed && \
arkade chart bump --verbose=$(VERBOSE) -f ./chart/inlets-operator/values.yaml --write
6 changes: 3 additions & 3 deletions chart/inlets-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ and can be overwritten via the helm `--set` flag.
Parameter | Description | Default value
--- | --- | ---
`annotatedOnly` | Only create tunnels for LoadBalancer with a `operator.inlets.dev/manage=1` annotation | `false`
`inletsClientImage` | Docker image for the inlets client | See values.yaml
`image` | Docker image for the inlets-operator | See values.yaml
`inletsclient.Image` | Container image for the inlets client when deployed inside K8s | See values.yaml
`image` | Container image for the inlets-operator | See values.yaml
`inletsRelease` | Release version of inlets for tunnel server VMs run via systemd | See values.yaml
`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` | `""`
`affinity` | Node affinity policy | `{}`
`nodeSelector` | Node labels for data pod assignment | `{}`
`tolerations` | Node tolerations | `[]`
`resources` | Operator resources requests & limits | `{"requests":{"cpu": "100m", "memory": "128Mi"}}`
`accessKeyFile` | Read the access key for your infrastructure provider from a file (recommended) | `/var/secrets/inlets/inlets-access-key`
`inletsRelease` |Release version of inlets for tunnel servers | See values.yaml
`subnetId` | The Subnet ID where the exit-server should be placed (EC2) | `""`
`vpcId` | The VPC ID to create the exit-server in (EC2) | `""`
`plan` | The plan or size for your cloud instance | different defaults, depending of the infrastructure provider
Expand Down
4 changes: 2 additions & 2 deletions chart/inlets-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ spec:
{{- if .Values.organizationID }}
- "-organization-id={{.Values.organizationID}}"
{{- end }}
{{- if .Values.inletsClientImage }}
- "-client-image={{.Values.inletsClientImage}}"
{{- if .Values.inletsClient.image }}
- "-client-image={{.Values.inletsClient.image}}"
{{- end }}
{{- if .Values.inletsRelease }}
- "-inlets-release={{.Values.inletsRelease}}"
Expand Down
12 changes: 8 additions & 4 deletions chart/inlets-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ region: "lon1"
# Required when using a network driver that uses IPVS instead of iptables
annotatedOnly: false

# These two versions should match for the client and server
# For the client which will run as a Deployment in Kubernetes
inletsClient:
image: "ghcr.io/inlets/inlets-pro:0.9.31"

# For the server which will run a binary via systemd
inletsRelease: "0.9.31"

#plan: <The plan or size for your cloud instance>

# provider: "gce"
Expand Down Expand Up @@ -44,10 +52,6 @@ subnetId: ""
image: "ghcr.io/inlets/inlets-operator:0.17.7"
pullPolicy: "IfNotPresent"

# These should match
inletsClientImage: "ghcr.io/inlets/inlets-pro:0.9.23"
inletsRelease: "0.9.23"

nameOverride: ""
fullnameOverride: ""

Expand Down
8 changes: 4 additions & 4 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.14"
want := "0.9.31"
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.14",
InletsRelease: "0.9.31",
},
AccessKey: "key",
}

got := c.GetInletsRelease()

want := "0.9.14"
want := "0.9.31"

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.14"
want := "ghcr.io/inlets/inlets-pro:0.9.31"
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.14"
const defaultRelease = "0.9.31"

func main() {
infra := &InfraConfig{
Expand Down

0 comments on commit ccc4035

Please sign in to comment.