Skip to content

Commit

Permalink
Fix issue with EKS semver suffix
Browse files Browse the repository at this point in the history
The semver suffix added by EKS indicated a "pre-release"
version, however the EKS team just wanted to add their own
custom tag, not to indicate a pre-release.

The check to print the correct ingress version can probably
be removed now since v1 became stable as of v1.19, that said
this change strips any K8s version suffix so that the
comparison does not fail.

It was failing because semverCompare considered any
pre-release version to be less than v1.19. Tested by
helm template.

We didn't see this issue before because most people
seem to create their own separate ingress records rather
than the one generated by the chart.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Nov 24, 2024
1 parent 6ed2e1d commit cd64953
Show file tree
Hide file tree
Showing 14 changed files with 296 additions and 271 deletions.
2 changes: 1 addition & 1 deletion chart/openfaas/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
type: application
description: OpenFaaS - Serverless Functions Made Simple
name: openfaas
version: 14.2.81
version: 14.2.82
sources:
- https://github.com/openfaas/faas
- https://github.com/openfaas/faas-netes
Expand Down
5 changes: 3 additions & 2 deletions chart/openfaas/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- end -}}
{{- end -}}

{{/* Way to override KubeVersion. */}}
{{/* Way to override KubeVersion, with EKS suffix sanitization */}}
{{- define "openfaas.ingress.kubeVersion" -}}
{{- default .Capabilities.KubeVersion.Version .Values.k8sVersionOverride -}}
{{- $version := default .Capabilities.KubeVersion.Version .Values.k8sVersionOverride -}}
{{- regexReplaceAll "([0-9]+\\.[0-9]+\\.[0-9]+).*" $version "$1" -}}
{{- end -}}

{{/* Determine Ingress API Version */}}
Expand Down
Binary file modified docs/cron-connector-0.6.11.tgz
Binary file not shown.
Binary file modified docs/federated-gateway-0.1.0.tgz
Binary file not shown.
560 changes: 292 additions & 268 deletions docs/index.yaml

Large diffs are not rendered by default.

Binary file modified docs/kafka-connector-0.7.11.tgz
Binary file not shown.
Binary file modified docs/mqtt-connector-0.4.7.tgz
Binary file not shown.
Binary file modified docs/nats-connector-0.3.2.tgz
Binary file not shown.
Binary file added docs/openfaas-14.2.82.tgz
Binary file not shown.
Binary file modified docs/postgres-connector-0.1.1.tgz
Binary file not shown.
Binary file modified docs/pro-builder-0.4.15.tgz
Binary file not shown.
Binary file modified docs/queue-worker-0.2.10.tgz
Binary file not shown.
Binary file modified docs/sns-connector-0.1.3.tgz
Binary file not shown.
Binary file modified docs/sqs-connector-0.2.6.tgz
Binary file not shown.

0 comments on commit cd64953

Please sign in to comment.