Skip to content

Implement portable classes#13

Merged
negz merged 4 commits intocrossplane:masterfrom
hasheddan:portable-class
Sep 12, 2019
Merged

Implement portable classes#13
negz merged 4 commits intocrossplane:masterfrom
hasheddan:portable-class

Conversation

@hasheddan
Copy link
Copy Markdown
Member

@hasheddan hasheddan commented Sep 11, 2019

Description of your changes

This PR is the first step in implementing the design proposed in crossplane/crossplane#743. It refactors the shared default class reconciler and claim reconciler. Updates will need to be applied to each of the provider stacks as well core crossplane.

This is a partial fix for crossplane/crossplane#703 and crossplane/crossplane#723.

The following changes will need to be applied following merge of this PR:

  • Provider Stacks
    • Update claim controllers to pass ClassKinds instead of just Class
  • Core Crossplane
    • Bump crossplane-runtime dependency version
    • Change Policy kinds to Class kinds and make sure they embed PortableClass type and satisfy PortableClass interface
    • Update DefaultClassControllers to pass PortableClassKind instead of PolicyKind

Checklist

I have:

  • Run make reviewable to ensure this PR is ready for review.
  • Ensured this PR contains a neat, self documenting set of commits.
  • Updated any relevant documentation, examples, or release notes.
  • Updated the RBAC permissions in clusterrole.yaml to include any new types.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
@hasheddan hasheddan requested review from jbw976 and negz September 11, 2019 00:12
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Copy link
Copy Markdown
Member

@negz negz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for starting on this! I like this emergent pattern of making a smaller change here in crossplane-runtime that we can then propagate to the other projects in smaller PRs.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Copy link
Copy Markdown
Member

@negz negz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost ready to merge; just a few minor comments to address.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants