Commit Graph

34 Commits

Author SHA1 Message Date
Hasan Turken 11e9468944
Cleanup deprecated stuff that are no longer used
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-08-11 13:02:54 +03:00
Hasan Turken 9bb1416205
Filter out external create annotations from DesiredState
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-03-29 17:03:14 +03:00
Hasan Turken c4ec21474a
Add DesiredStateChanged to filter out updates going to status
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2023-03-17 17:27:56 +03:00
Nic Cope af4e148a11 Replace github.com/pkg/errors with our own pkg/errors.
Signed-off-by: Nic Cope <negz@rk0n.org>
2021-09-09 07:50:57 +00:00
Hasan Turken 6e1de520f8
Add IsNamed predicate
Signed-off-by: Hasan Turken <turkenh@gmail.com>
2021-03-29 16:58:28 +03:00
Nic Cope 95d71dbd91 Remove support for resource claims and classes
See https://github.com/crossplane/crossplane/issues/1670 for context.

Signed-off-by: Nic Cope <negz@rk0n.org>
2020-09-20 17:46:06 -07:00
Nic Cope cf8d3a6a26 Make connection secret propagation UID-agnostic
This allows propagation to function even when the propagating and/or propagated
secrets have been deleted and recreated, and thus allocated new UIDs.

Signed-off-by: Nic Cope <negz@rk0n.org>
2020-04-05 15:16:25 -07:00
hasheddan 16aa98bd07 Update go mod and refs with crossplane org name
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-02-18 18:17:32 -06:00
Daniel Mangum d5c9dedd2a secret reconciler: allow for propagation to multiple secrets (#92)
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-01-06 16:51:27 -05:00
Muvaffak Onus 5a3ce4f6c8
Removed Mock word from mocks in package fake.
Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
2019-12-12 15:02:06 +03:00
Muvaffak Onus 3cf4bd1275
Move MockManager into fake package
Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
2019-12-11 16:06:14 +03:00
Muvaffak Onus 81a7488824
Make mock of our interfaces available to be used out of this repository for testing purposes
Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
2019-12-11 16:03:16 +03:00
Nic Cope 701387a302 Add a HasResourceClass predicate
For resource claim controllers, now that we're unconcerned with indirect
resource classes.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-22 17:13:21 -07:00
Nic Cope d7b4db0562 Add claim scheduling and defaulting controllers
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-22 17:13:21 -07:00
Nic Cope a310ee6a4a Remove support for portable resource classes
This commit renames "non portable resource class" back to "resource class", and
requires that resource claims reference a (non portable) resource class in any
namespace.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-22 17:12:36 -07:00
Nic Cope 88193ba371 Add AllOf watch predicate
Same idea as the existing AnyOf predicate, but it requires all predicates pass.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-08 00:45:05 -07:00
Nic Cope 894481e637 Propagate connection secrets
This commit allows constant propagation of connection secrets from managed
resources to their bound resource claims. It does this by updating the existing
APIManagedConnectionPropagator to add 'propagation annotations', which can be
used by a new 'secret propagating reconciler' to watch both secrets for constant
propagation. The predicates and enqueue handler required to implement this are
included.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-10-08 00:25:11 -07:00
hasheddan d80bbd931a predicates: remove deprecated hasdirectclassreferencekind
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-09-27 12:14:10 -05:00
Nic Cope f1075e19e4 Add an IsManagedKind watch predicate.
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-09-18 15:13:38 -07:00
Nic Cope 0431952909 Rename all predicates to start with 'Has'
...because I am pedantic.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-09-15 01:36:28 -07:00
Nic Cope 8a3e590467 Refactor predicates to support static provisioning
We currently support dynamic provisioning in the resource claim reconciler
by using a watch predicate that allows either managed resources that directly
reference a non-portable resource class of a given kind, or resource claims that
reference a non-portable resource class of a given kind indirectly via a
portable resource class.

To support static provisioning (i.e. explicitly claiming an existing managed
resource) we must also allow resource claims that explicitly reference a managed
resource. Writing one predicate to do all of this was getting cumbersome, so I
have refactored the predicate interface a little.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-09-15 01:36:28 -07:00
Nic Cope 57a3b0cff1 Support managed resources that do not reference a class
Controllers built against crossplane-runtime will currently panic if they
encounter a managed resource without a class reference. Any dynamically
provisioned managed resource will have a class reference, but this breaks
the static provisioning workflow.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-09-13 19:32:10 -07:00
Nic Cope 1e900a411e Add a predicate that supports both resource claims and managed resources
It turns out both our watches use the same predicate and apply it to the watched
kind, not the kind that actually gets enqueued.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-09-13 00:01:11 -07:00
Nic Cope c170676a62 Have PCR predicate accept a slightly smaller interface.
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-09-12 23:35:04 -07:00
hasheddan 06cc35d1e3 class to nonportable class
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-09-11 22:59:59 -05:00
hasheddan 161ab47fb3 portable and nonportable
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-09-11 16:23:44 -05:00
hasheddan 80eeac1347 implement portable classes
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-09-10 19:06:05 -05:00
hasheddan 6d90659a5f runtime migration: remove objecthasprovisioner predicate as no longer needed with strongly typed resource classes
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-08-20 09:29:11 -05:00
hasheddan 7d786e2dff runtime migration: strip apis and update dependencies
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-08-20 09:27:20 -05:00
hasheddan a72525edae kubebuilderv2: update core packages and tooling
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Co-authored-by: Muvaffak Onus <onus.muvaffak@gmail.com>
Co-authored-by: Jared Watts <jbw976@gmail.com>
Co-authored-by: hasheddan <georgedanielmangum@gmail.com>
2019-08-13 17:39:59 -05:00
hasheddan 9c60da21bc strongly typed phase one: implement default class reconciler for strongly typed resource classes
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Co-authored-by: Nic Cope <negz@rk0n.org>
2019-08-02 09:59:19 -05:00
hasheddan 2a0fb9efd4 default resource classes: implementation
Co-Authored-By: Nic Cope <nicc@rk0n.org>
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-07-17 21:19:45 -05:00
Nic Cope b3da55f2be Update all copyrights to 2019
This commit was generated via s/Copyright 2018/Copyright 2019/g

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-07-10 20:16:40 -07:00
Nic Cope 68a7580935 Add new resource claim reconciler.
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-06-24 23:47:11 -07:00