- github.com/Azure/azure-amqp-common-go/v3 to v3.2.3
- github.com/Azure/azure-event-hubs-go/v3 to v3.3.17
- github.com/containrrr/shoutrrr to v0.5.2
- github.com/fluxcd/pkg/ssa to v0.15.1
- github.com/getsentry/sentry-go to v0.13.0
- github.com/go-logr/logr to v1.2.3
- github.com/ktrysmt/go-bitbucket to v0.9.40
- github.com/slok/go-http-metrics to v0.10.0
- github.com/xanzy/go-gitlab to v0.59.0
- golang.org/x/oauth2 to v0.0.0-20220309155454-6242fa91716a
- sigs.k8s.io/cli-utils to v0.29.3
Signed-off-by: Hidde Beydals <hello@hidde.co>
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>
This rearranges the tests a little to make it easier to test for
events being filtered (not forwarded).
Signed-off-by: Michael Bridgen <michael@weave.works>
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>
This commit upgrades the `controller-runtime` dependency to `v0.7.0`,
including all changes required to make all wiring work again.
- Upgrade `runtime` to v0.6.0 to include `controller-runtime` changes.
- Loggers have been removed from the reconcilers and are now retrieved
from the `context.Context` passed to the `Reconcile` method and
downwards functions.
- Logger configuration flags are now bound to the flag set using
`BindFlags` from `runtime/logger`, ensuring the same contract across
GitOps Toolkit controllers, and the `--log-json` flag has been
deprecated in favour of the `--log-encoding=json` default.
- The `ChangePredicate` from `runtime` has changed to a
`ReconcilateAtChangedPredicate`, and is now chained with the
`GenerationChangedPredicate` from `controller-runtime` using
`predicate.Or`.
- The `leader-election-role` was changed, as leader election now works
via the `coordination/v1` API.
Other notable changes:
- Use `DeletionTimestamp` of resource object to determine readiness.
- `source-controller` API dependency has been upgraded to `v0.6.0`
which also uses `controller-runtime` `v0.7.0`.
Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
Signed-off-by: Philip Laine <philip.laine@gmail.com>
Signed-off-by: Hidde Beydals <hello@hidde.co>