Commit Graph

23 Commits

Author SHA1 Message Date
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
Hidde Beydals db475c969b Enable pprof endpoints on metrics server
Using the helper from `pkg/runtime/pprof`, which follows the suggestion
from controller-runtime to use `AddMetricsExtraHandler`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-02-07 12:44:35 +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
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
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
Stefan Prodan 600ba2d008
Add readiness/liveness probes
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-26 10:00:55 +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 c39cad9b84 Add watch all namespaces flag 2020-09-11 15:47:46 +03:00
stefanprodan 132b251923 Use runtime pkg and bump build-push-action version 2020-09-10 15:21:17 +03:00
stefanprodan c86c8d1d3d Configure manager logging and set level to info 2020-09-09 15:15:17 +03:00
stefanprodan bd2fdeba1f Use logger package from fluxcd/pkg
Update source-controller/api to v0.0.11, client-go to v0.18.8 and controller-runtime to v0.6.2
2020-08-21 12:42:45 +03:00
stefanprodan 1bf1534b90 Setup production logging
For production the log format is JSON, the timestamps format is ISO8601
and stack traces are logged when the level is set to debug.
2020-07-13 11:56:53 +03:00
stefanprodan 368c13af28 Implement GitRepository hook 2020-07-03 18:32:34 +03:00
stefanprodan 99fc71c17a Add receiver to API 2020-07-03 16:38:17 +03:00
stefanprodan c0e02990e6 Format imports 2020-07-01 17:40:33 +03:00
stefanprodan 81fd558328 Change ports: 8080 for metrics and 9090 for events 2020-07-01 16:54:27 +03:00
stefanprodan 01d5660043 Initialize resources 2020-07-01 16:35:05 +03:00
stefanprodan ab9c5a74fd Init HTTP server 2020-07-01 12:58:17 +03:00
stefanprodan 86c610aabf Add Alert API spec 2020-06-30 09:25:08 +03:00
stefanprodan 8f35be0055 Add Provider API spec 2020-06-30 08:57:02 +03:00
stefanprodan a0ab3df81f Init controller 2020-06-29 15:45:22 +03:00