Commit Graph

193 Commits

Author SHA1 Message Date
Stefan Prodan a77613619d
Release v1.0.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-07-04 11:32:14 +03:00
Matheus Pimenta 13d3d8f9ee
Lift HTTP/S validation from Provider spec.address
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
2023-07-04 10:36:04 +03:00
Martin Kemp dbdc4dee73
Add support for PagerDuty
Signed-off-by: Martin Kemp <me@martinke.mp>
2023-06-27 10:52:24 +02:00
Matheus Pimenta 04cea9d51e Add Provider for Google Pub/Sub Topic
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
Co-authored-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
Co-authored-by: Max Jonas Werner <makkes@users.noreply.github.com>
Co-authored-by: Sunny <darkowlzz@protonmail.com>
2023-06-16 17:08:11 +01:00
Matheus Pimenta 4c1978bc73 Fix Alert .spec.eventMetadata documentation
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
2023-06-05 16:21:29 +05:30
Sanskar Jaiswal 51e4ae98a3
Release v1.0.0-rc.4
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2023-05-26 18:26:32 +05:30
Matheus Pimenta 8c11d8a19b Fix Alert .spec.eventMetadata behavior
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
2023-05-24 11:27:27 +01:00
Sanskar Jaiswal dcb5d0af46
bump controller-gen to v0.12.0
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2023-05-23 15:34:35 +05:30
Stefan Prodan ffb901d7d4
Release v1.0.0-rc.3
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-05-12 12:02:33 +03:00
Matheus Pimenta e9d1fb3d86 Add event metadata field to Alert spec
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
2023-05-11 18:14:49 +01:00
Stefan Prodan c6e2948bb9
Release v1.0.0-rc.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-05-09 17:48:33 +03:00
Matheus Pimenta 9b7a80942f Add InclusionList to Alert CRD
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
Co-authored-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-05-02 10:05:16 +01:00
Sunny 24509ce458
receiver/v1: Remove deprecated .status.url field
Receiver .status.url was deprecated in v1beta2 API and replaced with
.status.webhookPath. Remove it from v1 API and all references to it.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-04-21 20:38:09 +05:30
Max Jonas Werner 69f7ddbcc4
Release 1.0.0-rc.1
Signed-off-by: Max Jonas Werner <mail@makk.es>
2023-03-30 17:56:20 +02:00
Max Jonas Werner dbeb5a3241
document receivers.spec.resources.matchLabels in v1 API
This functionality has been implemented in #482 but we only want to
expose it in v1 of the API.

Signed-off-by: Max Jonas Werner <mail@makk.es>
2023-03-30 15:47:49 +02:00
Max Jonas Werner ec03bd20a3
Introduce v1 API and bump Receiver version to v1
This commit bumps the Receiver API version to v1 in preparation of
the Flux GitOps GA milestone
(https://fluxcd.io/roadmap/#flux-gitops-ga-q1-2023).

We are now actively maintaining two versions of the notification API
group in parallel: v1 which currently only holds the Receiver kind and
v1beta2 for all other kinds.

Since we haven't run into this situation before, I had to change the
way we expose the API docs in ./docs/api: The directory now has
sub-directories for each active API version. Therefore we need to
change our scripts in the website repository to take this change into
account so that we expose both API group version at
https://fluxcd.io/flux/components/notification/api/. This change is
implemented in https://github.com/fluxcd/website/pull/1427.

refs #436

Signed-off-by: Max Jonas Werner <mail@makk.es>
2023-03-30 15:40:54 +02:00
Max Jonas Werner e7c8c7b6a8
un-document receivers.spec.resources.matchLabels
This has been introduced in #482 but we actually want this feature to
only be available in v1 of the API. A follow-up PR will re-add this to
the v1 API.

Signed-off-by: Max Jonas Werner <mail@makk.es>
2023-03-27 17:20:01 +02:00
Max Jonas Werner f8ab99e080
Merge pull request #482 from raffis/feat-receiver-by-labels
feat: support multi receiver by matchLabels
2023-03-23 13:26:51 +01:00
Raffael Sahli 57f62f400c
feat: support multi receiver by matchLabels
Signed-off-by: Raffael Sahli <raffael.sahli@doodle.com>
2023-03-20 08:11:30 +00:00
Hidde Beydals 0f4f23739e
Release v0.33.0
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-03-08 13:52:06 +01:00
Hidde Beydals d974ebc2ca
Release v0.32.1
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-02-28 13:10:50 +01:00
Sunny d631971533 Release v0.32.0
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-02-17 09:55:00 +01:00
Sunny ed3233de49 Update dependencies
- Update controller-gen to v0.11.1 and re-generate the CRDs.
- Update controller-runtime to v0.14.4.
- Update fluxcd/pkg dependencies to the latest.
- Update source-controller dependency to v0.35.0.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-02-16 23:58:42 +05:30
Sunny 2b65e21ae7 Release v0.31.0
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-02-01 22:25:42 +05:30
Stefan Prodan 83d68a4f50
Release v0.30.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-22 14:53:12 +02:00
Stefan Prodan d57c09a0dd
Remove interval default value from CRDs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-22 14:33:29 +02:00
Stefan Prodan 5366acaccf
Release v0.30.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-21 16:12:45 +02:00
Stefan Prodan 07799e3824
Release v0.30.0 and the v1beta2 API
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-20 10:40:42 +02:00
ttyS3 d302029447
feat: add gitea notifier
Signed-off-by: ttyS3 <ttys3.rust@gmail.com>
2022-12-14 01:27:20 +08:00
Hidde Beydals b0c02d7c32 config: ensure event create/patch is registered
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-09 12:05:51 +00:00
Stefan Prodan 4aad301aa2 Stall providers with invalid spec
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan d16588a193 Deprecate `Receiver.status.url` in favor of `.status.webhookPath`
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 70c678f691 Make interval optional
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan ae65712eb6 Add reconciliation interval to providers and receivers
Periodically reconcile providers and receivers with their
Secret references to surface config errors after initialisation.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 2b35ef5845 API: Consolidate the documentation style for v1beta2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 8dadcac1e2 api: Add validation to URLs (max 2048) and Summary (max 255)
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 974a77da00 Refactor reconcilers and introduce v1beta2 API
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 11:03:53 +00:00
Sunny 5385dfd8a3 Release v0.29.1
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-01 19:46:53 +05:30
Hidde Beydals f1e983d0d1 Release v0.29.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-11-22 12:35:26 +00:00
Stefan Prodan 9e5756ef63
Release v0.28.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-10-20 15:16:34 +03:00
Max Jonas Werner a76b9a0c63
Add "generic-hmac" Provider
This commit adds the "generic-hmac" Provider type for authenticating
webhook requests coming from notification-controller. I extended the
`Forwarder` notifier to accept an optional key used for generating the
HMAC. If the key is nil or empty no HMAC header is generated and the
forwarder behaves as before. If it is provided an `X-Signature` HTTP
header is added to the request carrying the HMAC.

I transformed the `TestForwarder_Post` test into a table-driven test
so that we can use the same setup and testing code for testing HMAC
and non-HMAC forwarder instances.

Any existing `X-Signature` header value set through
a `Provider.spec.secretRef` Secret's `header` field will be
overwritten.

closes #99

Signed-off-by: Max Jonas Werner <max@e13.dev>
2022-10-04 18:41:45 +02:00
Stefan Prodan f5275e1922
Release v0.27.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-27 17:50:13 +03:00
Stefan Prodan 2e212b4699
Update Go to 1.19
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-26 18:18:32 +03:00
Stefan Prodan b225c77185
api: add custom validation for v1.Duration types
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-20 12:14:39 +03:00
Stefan Prodan 353c268a46
Release v0.26.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-12 12:59:32 +03:00
Somtochi Onyekwere 25eeaf46dd Add .spec.timeout to Provider
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-08-31 11:25:09 +01:00
Stefan Prodan 43715ce216
Release v0.25.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-29 12:06:21 +03:00
Stefan Prodan b95816db8c
Update Kubernetes packages to v1.25.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-26 12:00:36 +03:00
Stefan Prodan cf0eb61f67
Release v0.25.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-11 12:31:03 +03:00
Stefan Prodan c125b5da2a
Release v0.25.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-08 17:34:49 +03:00