Skip to content

Commit 085bc5d

Browse files
authored
Merge pull request #453 from fluxcd/releaase-v0.30.0
Release v0.30.0 and the v1beta2 API
2 parents ff68933 + 07799e3 commit 085bc5d

File tree

6 files changed

+53
-6
lines changed

6 files changed

+53
-6
lines changed

CHANGELOG.md

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

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

5+
## 0.30.0
6+
7+
**Release date:** 2022-12-20
8+
9+
This prerelease graduates the notification APIs to `v1beta2`.
10+
In addition, this version comes with support for
11+
[Gitea commit status updates](https://github.com/fluxcd/notification-controller/blob/api/v0.30.0/docs/spec/v1beta2/provider.md#gitea).
12+
13+
### `notification.toolkit.fluxcd.io/v1beta2`
14+
15+
After upgrading the controller to v0.30.0, you need to update the notification
16+
**Custom Resources** in Git
17+
by replacing `notification.toolkit.fluxcd.io/v1beta1` with
18+
`notification.toolkit.fluxcd.io/v1beta2` in all YAML manifests.
19+
20+
#### Breaking changes
21+
22+
- The `Alert.spec.summary` has a max length of 255 characters.
23+
- The `Provider.spec.address` and `Provider.spec.proxy` have a max length of 2048 characters.
24+
- The `Receiver.status.url` was deprecated in favour of `Receiver.status.webhookPath`.
25+
26+
#### API specifications in a user-friendly format
27+
28+
[The new specifications for the `v1beta2` API](https://github.com/fluxcd/notification-controller/tree/v0.30.0/docs/spec/v1beta2)
29+
have been written in a new format with the aim to be more valuable to a user.
30+
Featuring separate sections with examples, and information on how to write
31+
and work with them.
32+
33+
#### Enhanced Kubernetes Conditions
34+
35+
Notification API resources will now advertise more explicit Condition types,
36+
provide `Reconciling` and `Stalled` Conditions where applicable for
37+
[better integration with `kstatus`](https://github.com/kubernetes-sigs/cli-utils/blob/master/pkg/kstatus/README.md#conditions),
38+
and record the Observed Generation on the Condition.
39+
40+
#### Enhanced Git commit status updates
41+
42+
Starting with this version, the controller uses the `Provider` cluster assigned `UID`
43+
to compose a unique Git commit status ID to avoid name collisions
44+
when multiple clusters write to the same repository.
45+
46+
Improvements:
47+
* Refactor reconcilers and introduce v1beta2 API
48+
[#435](https://github.com/fluxcd/notification-controller/pull/435)
49+
- feat: add gitea notifier
50+
[#451](https://github.com/fluxcd/notification-controller/pull/451)
51+
552
## 0.29.1
653

754
**Release date:** 2022-12-01

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ resources:
66
images:
77
- name: fluxcd/notification-controller
88
newName: fluxcd/notification-controller
9-
newTag: v0.29.1
9+
newTag: v0.30.0

config/samples/notification_v1beta1_alert.yaml renamed to config/samples/notification_v1beta2_alert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: notification.toolkit.fluxcd.io/v1beta1
1+
apiVersion: notification.toolkit.fluxcd.io/v1beta2
22
kind: Alert
33
metadata:
44
name: alert-sample

config/samples/notification_v1beta1_provider.yaml renamed to config/samples/notification_v1beta2_provider.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: notification.toolkit.fluxcd.io/v1beta1
1+
apiVersion: notification.toolkit.fluxcd.io/v1beta2
22
kind: Provider
33
metadata:
44
name: slack-provider-sample
@@ -15,7 +15,7 @@ metadata:
1515
data:
1616
address: aHR0cHM6Ly9ob29rcy5zbGFjay5jb20vc2VydmljZXMv
1717
---
18-
apiVersion: notification.toolkit.fluxcd.io/v1beta1
18+
apiVersion: notification.toolkit.fluxcd.io/v1beta2
1919
kind: Provider
2020
metadata:
2121
name: generic-provider-sample

config/samples/notification_v1beta1_receiver.yaml renamed to config/samples/notification_v1beta2_receiver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: notification.toolkit.fluxcd.io/v1beta1
1+
apiVersion: notification.toolkit.fluxcd.io/v1beta2
22
kind: Receiver
33
metadata:
44
name: receiver-sample

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/Azure/azure-amqp-common-go/v3 v3.2.3
1111
github.com/Azure/azure-event-hubs-go/v3 v3.3.20
1212
github.com/containrrr/shoutrrr v0.6.1
13-
github.com/fluxcd/notification-controller/api v0.29.1
13+
github.com/fluxcd/notification-controller/api v0.30.0
1414
github.com/fluxcd/pkg/apis/event v0.2.0
1515
github.com/fluxcd/pkg/apis/meta v0.18.0
1616
github.com/fluxcd/pkg/masktoken v0.2.0

0 commit comments

Comments
 (0)