Commit Graph

160 Commits

Author SHA1 Message Date
Max Jonas Werner 926efbc120 Align docs structure with other controllers
In order to streamline the docs across all controllers, the CRD spec
file names are pluralized. This lets us better automate docs generation
from CRD specs.

refs fluxcd/website#1577

Signed-off-by: Max Jonas Werner <mail@makk.es>
2023-07-29 16:39:13 +02:00
Hidde Beydals 1a3ce97ee6
docs: update link to Gitea hooks source
While pinning it to a version, to ensure it continues to point to the
right LOC.

Signed-off-by: Hidde Beydals <hiddeco@users.noreply.github.com>
2023-07-14 15:37:37 +02: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
Raffael Sahli 605b42dcae
docs: fix generic webhook example
Signed-off-by: Raffael Sahli <raffael.sahli@doodle.com>
2023-06-20 13:37:28 +00: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
Matheus Pimenta 8c11d8a19b Fix Alert .spec.eventMetadata behavior
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
2023-05-24 11:27:27 +01: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
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 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 ef8c97323e
docs: fix matchLabels part
Signed-off-by: Raffael Sahli <raffael.sahli@doodle.com>
2023-03-21 08:22:41 +00:00
Somtochi Onyekwere 4fcde0026d add docs and log when no objects are found
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2023-03-20 22:20:54 +01:00
Max Jonas Werner abc4991505
fixes to the Receiver documentation
refs #436

Signed-off-by: Max Jonas Werner <max@e13.dev>
2023-03-20 18:44:30 +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
Tristan 777af4d6b9
fix secret name in example
Signed-off-by: Tristan <tristanp93@gmail.com>
2023-01-16 15:14:02 +01:00
Sunny 33f864018a
Merge pull request #462 from kingdonb/receiver-docs
Remove erroneous mention of wildcard in Receivers
2023-01-11 19:55:45 +05:30
Kingdon Barrett 046a2bd066
Remove erroneous mention of wildcard in Receivers
There is no supported wildcard here

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
2023-01-11 09:03:12 -05:00
ttyS3 bfafab8e1e docs: fix up typos in providers document and changelog
Signed-off-by: ttyS3 <ttys3.rust@gmail.com>
2022-12-28 14:33:44 +08: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 16012cefa2 docs: Rewrite portion of Provider spec
Plus addressing of a couple of nits.

The following must still be picked up at a later moment:

- More sections need to be moved from "working with" to "writing a ..."
- Documentation flow can likely be improved once the sections have been
  moved.
- Technical description of the behavior of the Provider types could be
  improved, this should be easier to do when everything has the same
  format.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-12 11:22:13 +00:00
Hidde Beydals ef94247cfe docs: improve Receiver spec
- Extensively document the various Receiver types, their validation
  mechanics and their caveats.
- Move various things around a bit to ensure we follow the same flow
  as the rewritten source-controller specs.
- Explicitly document the expected format of the Secret.
- Various other small rewordings and fixes.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-09 12:05:51 +00:00
Stefan Prodan 20fa1a008c docs: Add Provider and Receiver status spec
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 78fe519f5d docs: Add commit status updates to providers spec
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 04f5288570 docs: Add alert status specification
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 831785a295 docs: Add status and events to examples
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 caec764ccc Refactor notifies to use Flux Event API v1beta1
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 613111c51d docs: Add the API spec for Receivers v1beta2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan ab5cdc8dc1 docs: Add the API spec for Events and Providers v1beta2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan ab92536f40 docs: Add the API spec for Alerts v1beta2
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
Hidde Beydals de9915ee3c docs: update spec to reflect v1beta1 Event API
Co-authored-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-11-22 12:14:37 +00: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
Andrey Ivashchenko b48a5de74b
Fix table with git commit status providers
Signed-off-by: Andrey Ivashchenko <andrey.ivashchenko@gmail.com>
2022-09-22 14:23:00 +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
Sunny 8fac504e6b
Add OCIRepository event source kind
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-08-03 17:25:56 +05:30
Daniel Holbach 036e3e5a61 Add missing language to fenced code block
Fixes: fluxcd/website#1057

Signed-off-by: Daniel Holbach <daniel@weave.works>
2022-07-27 10:26:29 +02:00
Soule BA 44f5b43a4c
Update flux types api versions
Signed-off-by: Soule BA <bah.soule@gmail.com>
2022-06-07 15:44:40 +02:00
Stefan Prodan 01b428d6c8
Merge pull request #369 from alekspog/feature/add-github-dispatch-provider
Add GitHub dispatch provider
2022-05-11 16:29:35 +03:00
Aleksey Pogibelev e320370041
fix documentation
Signed-off-by: Aleksey Pogibelev <aleksey.pogibelev@gmail.com>
2022-05-10 13:35:43 +03:00
Aleksey Pogibelev a21f25159b
improve documentation
Signed-off-by: Aleksey Pogibelev <aleksey.pogibelev@gmail.com>
2022-05-10 13:35:22 +03:00
Stefan Prodan cc0deae7be
Reformat provider docs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-05-03 14:29:10 +03:00