- Install/Update the CRDs in the cluster by:
kubectl apply -f package/crds
- Create the provider config(make sure to update your API key) by:
kubectl apply -f examples/civo/provider
- Types are defined under
apis/civo
- Make sure not to change Go data type of existing fields as that lead be a breaking change for existing users.
- For introducing new fields, add the new field and run
make generate
to generate new CRDs
- Run
go run cmd/provider/main.go
to start running the local version of the provider
You can take advantage of a guided script to set up a crossplane-master
cluster in Civo, deploying the Crossplane civo provider and running the provider locally.
To init the crossplane-master
in Civo you can:
./scripts/local.sh init
To update the provider CRs and deploy it locally:
./scripts/local.sh init
To show an example you can apply to crossplane-master
and check if everything is working:
./scripts/local.sh example