source-controller/config/rbac
Hidde Beydals fda481efe9 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`.
- Signatures that made use of `runtime.Object` have changed to
  `client.Object`, removing the requirement to e.g. call
  `runtime.Object#Object`.
- The `client.MatchingField` function was deprecated, and has been
  replaced with `client.MatchingFields{}`.
- The `leader-election-role` was changed, as leader election now works
  via the `coordination/v1` API.

Other notable changes:

- `util.ObjectKey` was added to easily construct a `client.ObjectKey` /
  `types.NamespacedName` from a `metav1.Object`.
- The `SourceIndexKey` constant has been split out into
  `{GitRepository,HelmRepository,Bucket}IndexKey` constants.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-18 19:17:10 +01:00
..
bucket_editor_role.yaml Add Bucket type to API 2020-09-18 16:11:24 +03:00
bucket_viewer_role.yaml Add Bucket type to API 2020-09-18 16:11:24 +03:00
gitrepository_editor_role.yaml Change CRD domain to 'source.toolkit.fluxcd.io' 2020-07-30 21:50:46 +02:00
gitrepository_viewer_role.yaml Change CRD domain to 'source.toolkit.fluxcd.io' 2020-07-30 21:50:46 +02:00
helmchart_editor_role.yaml Change CRD domain to 'source.toolkit.fluxcd.io' 2020-07-30 21:50:46 +02:00
helmchart_viewer_role.yaml Change CRD domain to 'source.toolkit.fluxcd.io' 2020-07-30 21:50:46 +02:00
helmrepository_editor_role.yaml Change CRD domain to 'source.toolkit.fluxcd.io' 2020-07-30 21:50:46 +02:00
helmrepository_viewer_role.yaml Change CRD domain to 'source.toolkit.fluxcd.io' 2020-07-30 21:50:46 +02:00
kustomization.yaml deploy: reusable config 2020-04-24 12:17:33 +03:00
leader_election_role.yaml Upgrade controller-runtime to v0.7.0 2020-12-18 19:17:10 +01:00
leader_election_role_binding.yaml Scaffold repository controllers 2020-04-05 12:34:29 +03:00
role.yaml Add finalizers to RBAC 2020-10-28 14:39:53 +02:00
role_binding.yaml Scaffold repository controllers 2020-04-05 12:34:29 +03:00