Stefan Prodan
6ffaef2a41
Update dependencies (fix CVE-2021-43565)
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-01-11 13:21:26 +02: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
Ali AKCA
7ded18f850
chore: Drop deprecated io/ioutil
...
Signed-off-by: Ali AKCA <ali@akca.io>
2021-10-27 09:44:51 +02:00
Somtochi Onyekwere
996ee365c5
Create function for redacting logs
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-10-21 16:37:33 +01:00
Somtochi Onyekwere
f5d4328cbe
Use regex to find and replace token
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-10-21 11:51:49 +01:00
Stefan Prodan
9b5d9d0b2b
Update Git providers
...
- go-github v39.0.0
- go-bitbucket v0.9.26
- go-gitlab v0.50.4
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-09-17 12:43:51 +03:00
Hidde Beydals
e7bb4c90c4
Request reconcile using patch instead of update
...
This should prevent the generation of the object getting bumped, as
observed on a GKE K8s 1.18 cluster using the logic before this commit.
We only want to generation to increase when there are actual changes to
the `spec` of a resource, as some controllers use the `generation`
value to make assumptions about what they should do during a
reconciliation.
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-07-09 17:55:50 +02:00
Somtochi Onyekwere
df8150d47b
Return an error when request status code is not 200
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-06-07 12:20:57 +01:00
Philip Laine
717a4422b7
Redact token from error log
...
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2021-05-10 14:43:45 +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
Philip Laine
42d364be14
Remove rate limiter from receiver
...
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2021-04-01 10:50:29 +02:00
Philip Laine
97e4e2e552
Fix log verbosity and document event rate limiting
...
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2021-04-01 10:47:33 +02:00
Philip Laine
295c8f792d
Add debug logging when rate limiting events
...
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2021-04-01 10:21:20 +02:00
Philip Laine
e58fc2c96c
Add rate limiter to receiver and event http servers
...
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2021-04-01 09:48:45 +02:00
Somtochi Onyekwere
a99a0bc50d
Use deepcopy method for event
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-22 09:40:16 +01:00
Stefan Prodan
78fa2d103a
Use controller-runtime structured logging
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-03-15 14:06:04 +02:00
Somtochi Onyekwere
4a68a61289
add acr webhook
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-05 12:34:11 +01:00
Somtochi Onyekwere
9aba08e6bf
Uses unstructured client to annotate object
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-04 08:01:53 +01:00
Michael Bridgen
d7acd1fb43
Correct typo in filename
...
Signed-off-by: Michael Bridgen <michael@weave.works>
2021-02-23 12:42:29 +00:00
Michael Bridgen
3e7e99531b
Use continue with label rather than a local
...
`continue` with a label is for exactly this situation.
Signed-off-by: Michael Bridgen <michael@weave.works>
2021-02-23 12:39:20 +00:00
Michael Bridgen
440d96487a
Test case for minimal event forwarding
...
This adds some scaffolding for testing that events are forwarded as
specified by alerts.
The controllers themselves aren't needed; but since the
internal/server package refer directly to Kubernetes resources, the
tests share prerequisites with controller tests. For that reason I
have started by putting these tests in controllers/.
I have tried not to touch the server code itself, but it was necessary
to change it to use a fresh http.ServerMux rather than the (global)
default, so that the tests can create an event server each.
Signed-off-by: Michael Bridgen <michael@weave.works>
2021-02-23 12:17:51 +00:00
Stefan Prodan
c640ea8e36
Fix alerts regex filtering
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-02-23 12:55:57 +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
bcc3bac747
align space
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-21 09:30:20 +01: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
9e37e307ef
run make test
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-20 12:43:08 +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
Somtochi Onyekwere
29e3805c2f
Updates docs
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-01-15 13:52:21 +01: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
Stefan Prodan
49180091a7
Merge pull request #97 from fluxcd/alert-summary
...
Add alert summary to notification metadata
2020-12-07 10:57:58 +02:00
Stefan Prodan
f9fc5db2d4
Add alert summary to notification metadata
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-06 11:38:28 +02:00
Stefan Prodan
4bfeabbda7
Lookup ready receivers in all namespaces
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-06 10:11:42 +02: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
Sylvain Rabot
35284dc511
Fix typo
...
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2020-11-13 11:38:58 +01:00
Stefan Prodan
9ba52a45e5
Skip alert if it's not ready
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-09 14:30:33 +02:00
Stefan Prodan
2437884a97
Change copyright to Flux authors
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-27 18:52:14 +02:00
Stefan Prodan
e02c336582
Use reconcile request annotation
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-27 17:36:39 +02:00
Stefan Prodan
1f5d108d1d
Implement http(s) proxy for alerts
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-17 14:21:20 +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
stefanprodan
66518860d7
Add support for S3 buckets to alerts and receivers
2020-09-22 14:15:18 +03:00
stefanprodan
16dd709335
Release v0.0.10
2020-09-12 10:51:36 +03:00
Philip Laine
e321ee70fd
Add github notifier
2020-08-26 20:46:10 +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
ac20c35c4f
Lookup alerts at cluster level
...
Include involved object kind in logs.
2020-07-14 16:42:35 +03:00
stefanprodan
8075a01a9e
Update source-controller to v0.0.5
2020-07-13 17:18:56 +03:00
stefanprodan
7c7a26641e
Implement Bitbucket server receiver
2020-07-06 13:10:18 +03:00