Commit Graph

34 Commits

Author SHA1 Message Date
Stefan Prodan a75b04398a
Update dependencies
- k8s.io/* v0.26.1
- sigs.k8s.io/controller-runtime v0.14.2
- github.com/Azure/azure-amqp-common-go/v4 v4.0.0
- github.com/Azure/azure-event-hubs-go/v3 v3.4.0
- github.com/ktrysmt/go-bitbucket v0.9.55
- github.com/xanzy/go-gitlab v0.79.0
- github.com/getsentry/sentry-go v0.17.0
- github.com/fluxcd/pkg/runtime v0.27.0

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-01-30 14:36:22 +02:00
Hidde Beydals b0c02d7c32 config: ensure event create/patch is registered
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-09 12:05:51 +00:00
Stefan Prodan 5a0d6dde0a Use `ProgressingWithRetry` from `fluxcd/pkg/apis/meta`
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan c9a774fe85 Compact success events
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 012faa2a08 Log and emit events on successful reconciliation
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-12-09 12:05:51 +00:00
Stefan Prodan ee2600a07c Issue warning events on reconciliation errors
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 071dda5e97 Add finalizers to all the CRDs
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-09-09 15:18:11 +01:00
Santosh Kaluskar e52e25a373 Enables RecoverPanic option on reconcilers
Signed-off-by: Santosh Kaluskar <dtshbl@gmail.com>
2022-08-12 17:28:27 +05:30
Paulo Gomes 78dcebeea0
Add flags to configure exponential back-off retry
Add two new flags to enable users to configure exponential
back-off for Flux objects. The default values are now
set to 750ms for minimum retry time, and 15min for max.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-08-09 17:49:57 +01: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
Hidde Beydals 8395bc2a5f Remove double string from Receiver ready condition
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-11-18 13:26:56 +01: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
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
Somtochi Onyekwere f2f9960c0b Use patchStatus for alert and provider
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-29 13:25:41 +01:00
Somtochi Onyekwere d05873bdce Set observedGeneration before status update
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-27 22:01:21 +01:00
Somtochi Onyekwere af61d6ef69 Set observed generation
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-25 21:07:24 +01:00
Somtochi Onyekwere 4ae4619e23 Record suspension metrics
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-03-17 15:21:04 +01:00
Hidde Beydals 965ea95e7d Upgrade runtime package to v0.6.2
To include a bug fix to the `ReconcilateAtChangedPredicate`
and renaming to `ReconcileRequestedPredicate`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-14 12:55:37 +01:00
Philip Laine ed9382ec80 Upgrade controller-runtime to v0.7.0
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>
2021-01-12 15:05:54 +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 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 6c855a22bc
Add validation for providers and alerts
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-09 12:11:22 +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 633f50e9c9
Implement Prometheus instrumentation
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-13 15:45:53 +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
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 3112e18378 Normalise controller logs
Change structure logging labels to match the controller runtime format
2020-07-15 16:02:11 +03:00
stefanprodan c0e02990e6 Format imports 2020-07-01 17:40:33 +03:00
stefanprodan 01d5660043 Initialize resources 2020-07-01 16:35:05 +03:00
stefanprodan 86c610aabf Add Alert API spec 2020-06-30 09:25:08 +03:00