-
Notifications
You must be signed in to change notification settings - Fork 0
Explore Crossplane Provider and XRDs concept #202
Comments
I spoke with Dan, he suggested that we base our provider of this repo @ https://github.com/crossplane/provider-template . |
I've started looking at the DFDS Provider from the template: Current WIP Source is here: https://github.com/dfds/crossplane-provider-dfds/tree/provider-from-template It is currently in a non-working state with the message
I suspect because the template is out of date and not v2 as per this issue but not confirmed: I will look at existing providers such as aws to see if I can work out how they work and get ours in a healthy state |
I have managed to get the provider in a healthy state:
We now have the provider controller in this docker repo: https://hub.docker.com/repository/docker/dfdsdk/provider-dfds-controller The package is still in: https://hub.docker.com/repository/docker/dfdsdk/provider-dfds Some instructions to follow are: To build and publish: For dfdsdk\provider-dfds-controller:
For dfdsdk\provider-dfds:
To install in cluster:
This will need putting into an azure-pipelines.yaml and an automated build setting up on dockerhub but I am not worrying about that for now |
Next step is to get some XRD CRDs' made after some investigation into how to do those and include them in the provider. We can either create some around some simple resources like RDS (including the SecurityGroup) or use Inventa to start |
We have created and deployed an XRD today which involves a CompositeResourceDefinition(XRD), a Composition using that XRD, and a CompositeInstance which deploys that resource (aws rdsinstance). It deployed successfully, modified successfully with updated parameters and destroyed successfully so we have a rudimentary understanding we can build on. It was done using an AWS RDSInstance (postgres). We have moved onto the task of putting this into our DFDS Provider but it seems more complicated to do this than it first appeared so we have a lot of reading and experimenting to do to make progress, given how little/no documentation there is |
We now have a DFDS Provider package, a DFDS Configuration package, and a Composite resource working. We need to do some extra tasks to make this properly usable/presentable.
|
Need to upgrade to 1.13 to enable CombineFromComposite property in composition files |
To enable advanced policies like preventing switching engineVersion or prevent downgrading and displaying error messages directly to claim users, OPA Gatekeeper https://www.openpolicyagent.org/docs/latest/kubernetes-introduction/ watch https://www.youtube.com/watch?v=TaF0_syejXc for inspiration |
be another issue but it would be nice to get an understanding/example made)
The text was updated successfully, but these errors were encountered: