Skip to content

Commit 3a27fd1

Browse files
authored
Merge pull request #1847 from fluxcd/release-1.42.0
Release Flagger 1.42.0
2 parents b170bf4 + 1a727d2 commit 3a27fd1

File tree

8 files changed

+76
-8
lines changed

8 files changed

+76
-8
lines changed

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,69 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## 1.42.0
6+
7+
**Release date:** 2025-10-16
8+
9+
This release comes with enhancements to Gateway API support, new metrics capabilities, and various bug fixes.
10+
11+
Flagger now supports Gateway API v1.4.0 and adds CORS policy configuration for Gateway API HTTPRoutes.
12+
For more information, please see the [Gateway API tutorial](https://docs.flagger.app/main/tutorials/gatewayapi-progressive-delivery#customising-the-httproute).
13+
14+
Session affinity support has been enhanced with [cookie attributes](https://docs.flagger.app/main/usage/deployment-strategies#configuring-additional-cookie-attributes)
15+
configuration for better control over session management.
16+
17+
A new `.spec.service.unmanagedMetadata` field has been added to the Canary API to allow 3rd-party
18+
controllers to set labels and annotations on the Kubernetes Services created by Flagger.
19+
20+
When running Flagger on Kubernetes 1.33 or later, users can now specify the traffic distribution
21+
using the new `.spec.service.trafficDistribution` Canary field. Depending on the Kubernetes version
22+
the traffic distribution can be set to `PreferClose`, `PreferSameZone` or `PreferSameNode`.
23+
See the [Kubernetes Service docs](https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution) for more details.
24+
25+
This release is built with Go 1.25. The Kubernetes dependencies have been updated to 1.34,
26+
and the Traefik API has been migrated from `traefik.containo.us` to `traefik.io`.
27+
28+
#### Improvements
29+
- Update Gateway API to v1.4.0
30+
[#1842](https://github.com/fluxcd/flagger/pull/1842)
31+
- Add support for CORS policy to Gateway API
32+
[#1843](https://github.com/fluxcd/flagger/pull/1843)
33+
- Add support for setting traffic distribution
34+
[#1844](https://github.com/fluxcd/flagger/pull/1844)
35+
- Add count metrics for canary successes and failures
36+
[#1812](https://github.com/fluxcd/flagger/pull/1812)
37+
- Add support for cookie attributes in session affinity
38+
[#1826](https://github.com/fluxcd/flagger/pull/1826)
39+
- Add `unmanagedMetadata` to canary service specification
40+
[#1823](https://github.com/fluxcd/flagger/pull/1823)
41+
- Update dependencies to Kubernetes 1.34
42+
[#1832](https://github.com/fluxcd/flagger/pull/1832)
43+
- Build with Go 1.25
44+
[#1832](https://github.com/fluxcd/flagger/pull/1832)
45+
- Update Traefik API from traefik.containo.us to traefik.io
46+
[#1835](https://github.com/fluxcd/flagger/pull/1835)
47+
- Update GitOps install docs to latest Flux APIs
48+
[#1845](https://github.com/fluxcd/flagger/pull/1845)
49+
- loadtester: add pod security context
50+
[#1803](https://github.com/fluxcd/flagger/pull/1803)
51+
- Release loadtester 0.36.0
52+
[#1846](https://github.com/fluxcd/flagger/pull/1846)
53+
54+
#### Fixes
55+
- Fix: Gateway router should wait for accepted condition
56+
[#1791](https://github.com/fluxcd/flagger/pull/1791)
57+
- Fix: Send succeeded webhooks with correct phase
58+
[#1792](https://github.com/fluxcd/flagger/pull/1792)
59+
- Fix: Honor event webhook timeout
60+
[#1797](https://github.com/fluxcd/flagger/pull/1797)
61+
- Fix: Default namespace for cross-namespace ref validation
62+
[#1828](https://github.com/fluxcd/flagger/pull/1828)
63+
- Fix: APISIX E2E test
64+
[#1831](https://github.com/fluxcd/flagger/pull/1831)
65+
- Fix: Correct typo in AutoscalerReference type name
66+
[#1739](https://github.com/fluxcd/flagger/pull/1739)
67+
568
## 1.41.0
669

770
**Release date:** 2025-04-02

artifacts/flagger/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
serviceAccountName: flagger
2323
containers:
2424
- name: flagger
25-
image: ghcr.io/fluxcd/flagger:1.41.0
25+
image: ghcr.io/fluxcd/flagger:1.42.0
2626
imagePullPolicy: IfNotPresent
2727
ports:
2828
- name: http

charts/flagger/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: flagger
3-
version: 1.41.0
4-
appVersion: 1.41.0
3+
version: 1.42.0
4+
appVersion: 1.42.0
55
kubeVersion: ">=1.19.0-0"
66
engine: gotpl
77
description: Flagger is a progressive delivery operator for Kubernetes

charts/flagger/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
image:
77
repository: ghcr.io/fluxcd/flagger
8-
tag: 1.41.0
8+
tag: 1.42.0
99
pullPolicy: IfNotPresent
1010
pullSecret:
1111

docs/gitbook/tutorials/gatewayapi-progressive-delivery.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This guide shows you how to use [Gateway API](https://gateway-api.sigs.k8s.io/) and Flagger to automate canary deployments and A/B testing.
44

5-
![Flagger Canary Stages](https://raw.githubusercontent.com/fluxcd/flagger/main/docs/diagrams/flagger-gatewayapi-canary.png)
5+
![Flagger Gateway API Integration](https://raw.githubusercontent.com/fluxcd/flagger/main/docs/diagrams/flagger-gatewayapi-canary.png)
66

77
## Prerequisites
88

@@ -286,6 +286,11 @@ Now you can access podinfo via `curl -H "Host: www.example.com" localhost:8080`.
286286

287287
## Automated canary promotion
288288

289+
With the application bootstrapped, Flagger will continuously monitor the deployment for changes.
290+
When a new revision is detected, Flagger will start a canary analysis and gradually shift traffic to the new version.
291+
292+
![Flagger Canary Stages](https://raw.githubusercontent.com/fluxcd/flagger/main/docs/diagrams/flagger-canary-steps.png)
293+
289294
Trigger a canary deployment by updating the container image:
290295

291296
```bash

kustomize/base/flagger/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ resources:
99
images:
1010
- name: ghcr.io/fluxcd/flagger
1111
newName: ghcr.io/fluxcd/flagger
12-
newTag: 1.41.0
12+
newTag: 1.42.0

pkg/controller/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (c *Controller) alert(canary *flaggerv1.Canary, message string, metadata bo
185185
err = n.Post(canary.Name, canary.Namespace, message, fields, string(severity))
186186
if err != nil {
187187
c.logger.With("canary", fmt.Sprintf("%s.%s", canary.Name, canary.Namespace)).
188-
Errorf("alert provider $s.%s send error: %v", alert.ProviderRef.Name, providerNamespace, err)
188+
Errorf("alert provider %s.%s send error: %v", alert.ProviderRef.Name, providerNamespace, err)
189189
}
190190

191191
}

pkg/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ limitations under the License.
1616

1717
package version
1818

19-
var VERSION = "1.41.0"
19+
var VERSION = "1.42.0"
2020
var REVISION = "unknown"

0 commit comments

Comments
 (0)