Stefan Prodan
08182712b6
Cleanup metadata fields before alerting
...
Remove the checksum field from alerts metadata
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-03-21 12:38:06 +02:00
Hidde Beydals
88ce854edd
api: update dependencies
...
- sigs.k8s.io/controller-runtime to v0.11.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-18 15:12:15 +01:00
Sunny
cc8b8e9089
Use new standardized runtime and meta packages
...
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-03-18 00:01:41 +05:30
Sunny
16c1d7e042
api: Move Status in CRD printcolumn to the end
...
Status content could be very long compare to other fields. Moving it to
the end helps improve the visibility of other fields.
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-02-24 02:12:36 +05:30
Somtochi Onyekwere
519b6a5c5c
Add LabelSelectors for Event Sources
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-02-10 11:09:39 +01:00
Filipe Sequeira
659c01f70e
Add support for Grafana annotations API
...
Signed-off-by: Filipe Sequeira <filipe@weave.works>
Co-authored-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-02-08 11:10:14 +00:00
Stefan Prodan
44c08a2659
Allow disabling cross-namespace event sources
...
Introduce the flag `--no-cross-namespace-refs` (defaults to false) for allowing cluster admins to disable cross-namespace event sources for alerts.
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-01-28 10:30:31 +02:00
Stefan Prodan
16a517adc9
Downgrade fluxcd/pkg/apis/meta to v0.10.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-01-11 15:02:41 +02:00
Aurel Canciu
6963766d47
Update flux pkg components
...
Updating to the latest versions of the flux pkg components and a small
adjustment due to
a26ceb22f0
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2021-12-15 23:14:08 +01:00
Aurel Canciu
ae2bdbae0b
Update Go to v1.17
...
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2021-12-15 18:39:43 +01:00
Stefan Prodan
a54ad114b7
Update controller-runtime to v0.10.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-11-22 14:04:23 +02:00
Somtochi Onyekwere
7f66d3983b
Bump observed generation only once
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-11-08 23:23:07 +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
Stefan Prodan
b1060df96f
Merge pull request #258 from Alan01252/feature/alertmanager
...
Add alertmanager provider
2021-10-19 14:14:57 +03:00
Alan Hollis
8bf81500d3
Add alertmanager provider
...
This commit adds the alertmanager provider. The provider adds some
generic labels based on the event which should be enough to configure
appropraite routes within alertmanager.
The alert is annotated with the message by default and optionally by the
summary field given in the event.
Signed-off-by: Alan Hollis <me@alanhollis.com>
2021-10-13 12:48:51 +01:00
Somtochi Onyekwere
209d01e92e
Set observed generation when recording status
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-10-13 10:22:19 +01:00
Alan Hollis
cbe52b505a
Add opsgenie provider
...
Signed-off-by: Alan Hollis <me@alanhollis.com>
2021-10-06 14:14:54 +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
Somtochi Onyekwere
61103fc19a
Add support for Matrix notification
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-08-26 10:21:50 +01:00
Somtochi Onyekwere
4893803b24
Add lark type
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-08-25 10:17:21 +01:00
Somtochi Onyekwere
b0563cbd15
Send notifications using telegram
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-08-19 08:17:07 +01:00
Stefan Prodan
47ce56e238
Update dependencies
...
- k8s.io/* v0.21.3
- controller-runtime v0.9.5
- sentry-go v0.11.0
- go-gitlab v0.50.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-08-05 12:31:42 +03:00
Stefan Prodan
4ad2327b5b
Update dependencies
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-08 14:39:53 +03:00
Edvin Norling
e019aaab34
Change to azureeventhub
...
* Update go.sum
* Use ctx with timeout
* minor linting & clean-up
Signed-off-by: Edvin Norling <edvin.norling@xenit.se>
2021-05-05 11:01:51 +02:00
Edvin Norling
6ffa2e91fe
Add support for Azure EventHub provider
...
Solves #190
Signed-off-by: Edvin Norling <edvin.norling@xenit.se>
2021-05-05 11:01:51 +02:00
Stefan Prodan
15e97d0de9
Update fluxcd/pkg/runtime to v0.11.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-21 14:59:44 +03: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
Stefan Prodan
daaaf30ce1
Merge pull request #171 from SomtochiAma/observed-gen
...
Add observedGeneration to status of alert and receivers
2021-03-29 15:45:01 +03:00
LWJ
75d6dc4c31
Add support for Sentry provider
...
Signed-off-by: LWJ <lwjames1996@gmail.com>
2021-03-26 23:36:52 +00: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
Grant Doctor
01bacccb44
adding support for webex as an alert provider
...
Signed-off-by: Grant Doctor <gdoctor@cisco.com>
2021-03-22 14:54:04 -07:00
Stefan Prodan
8eda9d1871
Update dependencies
...
- sigs.k8s.io/controller-runtime v0.8.3
- github.com/fluxcd/pkg/runtime v0.8.4
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-03-15 16:07:01 +02:00
Somtochi Onyekwere
4a68a61289
add acr webhook
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-05 12:34:11 +01:00
Darren Everley
3ba3cf8cc1
Added missing factory method.
...
Signed-off-by: Darren Everley <darren.everley@xeropoint.co.uk>
2021-03-01 10:23:18 +00:00
Darren Everley
07ea112d02
Correction for missing there was a code generation phase and originally making the change to the generated artefact.
...
Signed-off-by: Darren Everley <darren.everley@xeropoint.co.uk>
2021-02-27 18:08:24 +00: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
b1612474c5
Update fluxcd/pkg/apis/meta to v0.8.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-02-12 14:27:53 +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
Somtochi Onyekwere
ed33ef85cc
Add kinds to api types
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-25 23:43:24 +01: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
Michael Bridgen
4687dd79ad
Add ImagePolicy to allowed object ref kinds
...
As with ImageUpdateAutomation, it's useful to allow alerts to process
events from ImagePolicy objects. Letting them be the target of webhook
triggers is not useful, since they don't support the reconcile request
protocol -- but is better than making a special case for them.
Signed-off-by: Michael Bridgen <michael@weave.works>
2021-01-21 13:22:18 +00:00
Michael Bridgen
b927be3263
Allow ImageUpdateAutomations in object refs
...
This adds ImageUpdateAutomation as a kind allowed by cross-namespace
object references here. That has two effects:
- ImageUpdateAutomation objects can be the source of events; and,
- ImageUpdateAutomation objects can be the target of webhook
triggers.
Of these, the first is certainly desirable (e.g,. now you can post a
Slack message when automation fails). The second may be useful, though
automations will more usually be triggered by ImageRepository objects
changing, and anyway doesn't hurt.
Signed-off-by: Michael Bridgen <michael@weave.works>
2021-01-21 13:20:14 +00:00
Somtochi Onyekwere
f9fc7292b3
Add generic-hmac implementation
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-21 09:12:01 +01:00
Somtochi Onyekwere
6f299d5229
Add webhook for nexus
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-20 12:40:17 +01:00
Somtochi Onyekwere
07bca13213
Adds gcr notification webhook
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-18 12:09:24 +01:00
Stefan Prodan
4e25920f6a
Update Kubernetes packages to v1.20.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-16 17:28:07 +02:00
Somtochi Onyekwere
201fb66617
add quay webhook
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-15 13:37:58 +01:00
Stefan Prodan
4e63d79514
Implement DockerHub webhook receiver
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-14 16:57:31 +02:00
Stefan Prodan
c148d6a036
Trigger ImageRepository reconciliation with webhook receivers
...
- Add ImageRepository to the Receiver API known kinds and RBAC
- Trigger container image updates to Git by annotating ImageRepository objects
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-14 14:16:13 +02:00
Hidde Beydals
e95cdc61e6
Merge pull request #104 from fluxcd/controller-runtime-update
...
Upgrade controller-runtime to v0.7.0
2021-01-12 15:19:47 +01:00