Commit Graph

25 Commits

Author SHA1 Message Date
Stefan Prodan 749a6c4cb7
Update dependencies
- k8s.io/* v0.27.3
- cloud.google.com/go/pubsub v1.31.0
- github.com/Azure/azure-event-hubs-go/v3 v3.6.0
- github.com/getsentry/sentry-go v0.22.0
- github.com/google/go-github/v53 v53.2.0
- github.com/ktrysmt/go-bitbucket v0.9.60
- github.com/xanzy/go-gitlab v0.86.0
- github.com/fluxcd/pkg/runtime v0.39.0

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-06-27 11:16:42 +03:00
Stefan Prodan 13fe515890
Update dependencies
- github.com/Azure/azure-amqp-common-go/v4 v4.1.0
- github.com/Azure/azure-event-hubs-go/v3 v3.5.0
- github.com/fluxcd/pkg/runtime v0.35.0
- github.com/getsentry/sentry-go v0.20.0
- github.com/go-logr/logr v1.2.4
- github.com/google/go-github/v52 v52.0.0
- github.com/ktrysmt/go-bitbucket v0.9.56
- github.com/xanzy/go-gitlab v0.83.0
- golang.org/x/oauth2 v0.7.0
- sigs.k8s.io/controller-runtime v0.14.6

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-05-08 16:34:30 +03:00
Stefan Prodan 9f2d0e1a6c Generate unique commit status updates
Use the Provider cluster assigned UID to compose a unique commit status
ID to avoid name collisions when multiple clusters write to the same
repository.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan 224b12a2b8 Refactor notifiers to use Event API v1beta1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-11-22 11:00:25 +00:00
Paulo Gomes 5b1d1b1721
fuzz: Refactor Fuzzers based on Go native fuzzing
The existing fuzzers were converted into the Go native format.
Based on how the code was structured on this project, the fuzzers
can be quite effective, allowing for entire E2E fuzzing in some
cases, but with very low execution cost.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-07 10:46:29 +01:00
Philip Laine 2c69c847d3 Add context to Post function
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2022-07-27 18:26:28 +02:00
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
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
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 a99a0bc50d Use deepcopy method for event
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-22 09:40:16 +01:00
Philip Laine f030be325c Add support for GitHub enterprise client
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2021-03-17 20:30:01 +01:00
Philip Laine 11f732d852 Respect schema set by the provider url
Modify the Azure DevOps notifier to allow compatibiliy
with running behind a proxy.
Check existing commit statuses to avoid spamming the
same status when reconciling.

Signed-off-by: Philip Laine <philip.laine@xenit.se>
2021-03-05 16:12:59 +01:00
Philip Laine 2390a39b4b Add check for duplicate status to avoid spamming the same status
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-02 19:41:48 +01:00
Philip Laine bec9f9a32f Change error messages to start with lowercase
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-11-17 18:30:03 +01:00
Philip Laine feb2794f3a Change error message quoting
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-11-17 15:11:41 +01:00
Philip Laine e812068c63 Verify repository id in git notifiers
The different git notifiers need repository ids in different formats.
On top of that some git providers support repositories in subgroups
while others do not support nesting. Each notifier needs test to verify
that they support their specific functionality.

Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-11-17 13:51:22 +01: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
Philip Laine c292355431 Skip progressing events for git notifiers 2020-09-19 12:10:07 +02:00
Philip Laine c17be73792 Change eventseverity check to use constant 2020-09-13 21:33:23 +02:00
Philip Laine e176655c9d Add gitlab notifier 2020-09-13 21:16:03 +02:00
Philip Laine 1e8230d55d Add revision to error message 2020-08-30 13:04:02 +02:00
Philip Laine c071b5e154 Make description lowercase and remove namespace from context 2020-08-29 16:56:30 +02:00
Philip Laine 029630b9ed Update status context and description 2020-08-26 20:46:17 +02:00
Philip Laine 8d81f037e3 Split reason camelcase into words 2020-08-26 20:46:17 +02:00
Philip Laine e321ee70fd Add github notifier 2020-08-26 20:46:10 +02:00