Skip to content

Commit

Permalink
Fix critical Prometheus bug and potential gateway memory leak
Browse files Browse the repository at this point in the history
1) Prometheus retracted a releases due to a critical bug:
prometheus/common#605

Fixed in OpenFaaS Standard/Enterprise

2) A HTTP body wasn't being closed in very old code in the
gateway's metrics exporter. Fixed in CE and Standard/Ent.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Apr 2, 2024
1 parent 5eecd7d commit c5a4d85
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion chart/cron-connector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Trigger OpenFaaS Functions with cron schedules
name: cron-connector
version: 0.6.9
version: 0.6.10
sources:
- https://github.com/openfaas/cron-connector
home: https://www.openfaas.com
Expand Down
2 changes: 1 addition & 1 deletion chart/cron-connector/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openfaasPro: false

pro:
image: ghcr.io/openfaasltd/cron-connector:0.2.3
image: ghcr.io/openfaasltd/cron-connector:0.2.5

image: ghcr.io/openfaas/cron-connector:0.6.1

Expand Down
2 changes: 1 addition & 1 deletion chart/kafka-connector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Connect OpenFaaS functions to Kafka topics
name: kafka-connector
version: 0.7.8
version: 0.7.9
sources:
- https://github.com/openfaas/faas-netes
home: https://www.openfaas.com
Expand Down
2 changes: 1 addition & 1 deletion chart/kafka-connector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ topics: faas-request
# them as a comma separated list i.e. "kafka-1:9092,kafka-2:9092,kafka-3:9092"
brokerHosts: kf-kafka:9092

image: ghcr.io/openfaasltd/kafka-connector:0.7.7
image: ghcr.io/openfaasltd/kafka-connector:0.7.8

# Output detailed logs from the consumer group's lifecycle
sessionLogging: true
Expand Down
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.32
version: 14.2.33
sources:
- https://github.com/openfaas/faas
- https://github.com/openfaas/faas-netes
Expand Down
18 changes: 9 additions & 9 deletions chart/openfaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ functions:
failureThreshold: 3

gatewayPro:
image: ghcr.io/openfaasltd/gateway:0.4.25
image: ghcr.io/openfaasltd/gateway:0.4.27
pprof: false

gateway:
image: ghcr.io/openfaas/gateway:0.27.5
image: ghcr.io/openfaas/gateway:0.27.6
readTimeout: "1m05s"
writeTimeout: "1m05s"
upstreamTimeout: "1m" # Must be smaller than read/write_timeout
Expand Down Expand Up @@ -126,7 +126,7 @@ eventSubscription:
httpVerbs: "PUT,POST,DELETE"

eventWorker:
image: ghcr.io/openfaasltd/event-worker:0.0.8
image: ghcr.io/openfaasltd/event-worker:0.0.9
replicas: 1
logs:
debug: false
Expand All @@ -138,7 +138,7 @@ eventWorker:

# For OpenFaaS Pro and the Function CRD
operator:
image: ghcr.io/openfaasltd/faas-netes:0.5.26
image: ghcr.io/openfaasltd/faas-netes:0.5.27
create: false
logs:
debug: false
Expand Down Expand Up @@ -176,7 +176,7 @@ operator:
pprof: false

faasnetesPro:
image: ghcr.io/openfaasltd/faas-netes:0.5.26
image: ghcr.io/openfaasltd/faas-netes:0.5.27
logs:
debug: false
format: "console"
Expand All @@ -197,7 +197,7 @@ faasnetes:
#
# Enable automatically when nats.queueMode is set to "jetstream"
jetstreamQueueWorker:
image: ghcr.io/openfaasltd/jetstream-queue-worker:0.3.26
image: ghcr.io/openfaasltd/jetstream-queue-worker:0.3.37
durableName: "faas-workers"
# Configure the max waiting pulls for the queue-worker JetStream consumer.
# The value should be at least max_inflight * replicas.
Expand Down Expand Up @@ -253,7 +253,7 @@ queueWorker:
## Advanced auto-scaler for scaling functions on RPS, CPU and in-flight requests
## Includes: scale to zero
autoscaler:
image: ghcr.io/openfaasltd/autoscaler:0.3.5
image: ghcr.io/openfaasltd/autoscaler:0.3.6
replicas: 1
enabled: true
resources:
Expand Down Expand Up @@ -291,7 +291,7 @@ dashboard:
# OpenFaaS Enterprise (OpenFaaS IAM)
# OIDC plugin for authentication on the OpenFaaS REST API
oidcAuthPlugin:
image: ghcr.io/openfaasltd/openfaas-oidc-plugin:0.7.1
image: ghcr.io/openfaasltd/openfaas-oidc-plugin:0.7.3
insecureTLS: false
verbose: true # debug setting
replicas: 1
Expand Down Expand Up @@ -324,7 +324,7 @@ iam:
tokenExpiry: 2h

prometheus:
image: prom/prometheus:v2.51.0
image: prom/prometheus:v2.51.1
create: true
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion chart/pro-builder/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Build OpenFaaS functions via a REST API
name: pro-builder
version: 0.4.12
version: 0.4.13
sources:
- https://github.com/openfaas/faas-netes
home: https://www.openfaas.com
Expand Down
2 changes: 1 addition & 1 deletion chart/pro-builder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# image is for the pro-builder API
proBuilder:
image: ghcr.io/openfaasltd/pro-builder:0.3.10
image: ghcr.io/openfaasltd/pro-builder:0.3.11

# Set to 0 for unlimited, or some non-zero value for a hard limit
# the builder will return a HTTP 429 status code, then the client
Expand Down
2 changes: 1 addition & 1 deletion chart/queue-worker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: queue-worker
description: Dedicated queue-worker for OpenFaaS using JetStream
type: application
version: 0.2.6
version: 0.2.7
keywords:
- openfaas
- jetstream
Expand Down
2 changes: 1 addition & 1 deletion chart/queue-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# You will need to create a license named "openfaas-license" - see the
# chart README for detailed instructions.

image: ghcr.io/openfaasltd/jetstream-queue-worker:0.3.26
image: ghcr.io/openfaasltd/jetstream-queue-worker:0.3.37

replicas: 1

Expand Down

0 comments on commit c5a4d85

Please sign in to comment.