Commit Graph

32 Commits

Author SHA1 Message Date
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
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
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 974a77da00 Refactor reconcilers and introduce v1beta2 API
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 11:03:53 +00: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
Somtochi Onyekwere 519b6a5c5c Add LabelSelectors for Event Sources
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-02-10 11:09:39 +01:00
Somtochi Onyekwere 19a0daa906 Use conditions helper in reconciler
Co-authored-by: Piaras Hoban <piaras@weave.works>
Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
Co-authored-by: souleb <bah.soule@gmail.com>
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-11-01 14:20:12 +01:00
Max Jonas Werner 2d55e609fa
feat: set default observedGeneration to -1 on CRDs
This sets the `status.observedGeneration` field to -1 by default. This
is a follow-up to https://github.com/fluxcd/helm-controller/pull/294,
porting the same code to the notification-controller so that all Flux
2 controllers work the same way in this regard.

Signed-off-by: Max Jonas Werner <mail@makk.es>
2021-08-27 17:18:38 +02:00
Philip Laine 8f3b685f17 Add self signed cert to provider
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2021-04-15 00:08:59 +02:00
Somtochi Onyekwere 71bbb3cf82 Add observedGeneration to status of alert and receivers
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-25 15:55:27 +01:00
Stefan Prodan 6c51b28411
Update dependencies
- sigs.k8s.io/controller-runtime v0.8.2
- sigs.k8s.io/controller-tools/cmd/controller-gen v0.4.1
- fluxcd/pkg/runtime v0.8.3

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-02-24 15:40:54 +02:00
Stefan Prodan 5c9e95ca02
Implement regex exclusions for alerts
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-02-08 15:45:11 +02:00
Stefan Prodan dff79355ec
Update fluxcd/pkg/runtime to v0.8.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-22 10:23:47 +02:00
Joshua Mühlfort 57e243d9ff Add hint about used "address" data key to the Provider CRD's SecretRef
Signed-off-by: Joshua Mühlfort <muehlfort@gonicus.de>
2021-01-06 13:04:08 +01:00
Stefan Prodan f2e96a88e0
Add summary field to Alert API
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-06 11:36:41 +02:00
Gert Dewit 27bd991f53
Fix "Notification API reference" title
Signed-off-by: Gert Dewit <gert@hobbiton.be>
2020-11-24 09:45:03 +01:00
Aurel Canciu ce214b9fa9
Refactor to adopt k8s standardized Condition type
Updates to use metav1.Condition type and removes references for
deprecated corev1.Condition* constants and uses the new k8s api/meta
helpers in place of the old pkg/apis/meta types.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-11-19 19:51:40 +02:00
Stefan Prodan 46666dae22
Add URL prefix validation to CRDs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-17 15:58:49 +03:00
Stefan Prodan 2f14e4b74b
Add Proxy field to Provider API
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-17 14:19:54 +03:00
stefanprodan d90acda9e6 Promote API to v1beta1 2020-09-30 18:21:17 +03:00
stefanprodan d4e3755515 Implement `fluxcd/pkg/meta/api` in APIs 2020-09-30 11:33:32 +03:00
Philip Laine eb7a25506f Change default value to use default annotation 2020-09-15 19:54:17 +02:00
Hidde Beydals bb7c241c83 Change CRD domain 'notification.toolkit.fluxcd.io'
Due to required domain changes for the helm-controller so that it
can co-exist in a cluster with the Helm Operator, other Toolkit
components are moving to a *.toolklit.fluxcd.io domain too.
2020-07-30 22:32:07 +02:00
stefanprodan 28e8477e29 Implement GitHub receiver 2020-07-04 08:19:06 +03:00
stefanprodan 99fc71c17a Add receiver to API 2020-07-03 16:38:17 +03:00
stefanprodan 5c1768c426 Generate API documentation 2020-07-02 09:45:02 +03:00