Basic principle of how a operator can be brought in SF2.0 is depicted in the below picture.
To bring in a new provisioner, one has to bring in their own service and plans as described here. Service Fabrik defines SFService
and SFSplans
which are the CRDs defined by the framework. The structure of these CRDs are well described here.
-
Add your services, similar to this and plans similar to this.
-
Make sure the templates are added properly in the plan metadata, simialr to this.
-
Start your operator and do the following:
- Register the CRD with Service Fabrik APIServer.
- Start watching on the CRD for state change.
- Process create/update/delete depending on the state change.