Comment: |
*Suggestion:*
IMHO it will be easier by using the operator-sdk with, following the steps.
1. Run the command to create a new type with the name APP
{code:java} $ operator-sdk add api --api-version=mobile-security-service.aerogear.com/v1alpha1 --kind=MobileSecurityServiceApp {code}
2. Run the command to create the controller of this new type.
{code:java} $ operator-sdk add controller --api-version=mobile-security-service.aerogear.com/v1alpha1 --kind=MobileSecurityServiceApp {code}
3. Replace the files and dirs with the implementation of the BIND * Go in the api/newtype_type and add the specs and status from the BIND and run the command
{code:java} $ operator-sdk generate k8s {code}
* * Go to the pkg/controller/newtype and add all files in the same hierarchy with the files from the BIND ( copy and past ) - do not forget change the name of the pkg
4. Replace the APP new CR and CRD with the BIND values 5. Remove all BIND files/dirs 6. By the IDE search by BIND and remove the lines ( the operator-sdk generated data in the deep_copy files and others) 7. Now check the Makefile and replace the commands where has bind_* for app_* (which was applying the bind will apply the app CR and CRD)
It is done. Just test by `make create-all` and the bind/unbind funcs.
Now is required to update the readme.
c/c [~lfitzgerald] |