If you want to contribute to this Crossplane cloudfoundry provider, be aware of the contribution guideline.
Ensure you have the following tools installed:
- git
- go
- golangci-lint
- make
- docker
- helm
- kind
- kubectl
- k9s
Clone the repository:
git clone https://github.com/SAP/crossplane-provider-cloudfoundry.git
cd crossplane-provider-cloudfoundrycheckout the branch you want to work on:
git checkout -b <branch-name>init and update submodules:
make submodulesConfigure connection details to your local development environment in examples/providerconfig/ directory. You can use the examples/providerconfig/providerconfig.yaml and examples/providerconfig/secret.yaml.tmpl as a template.
You can now start developing the provider.
Run code-generation pipeline:
make generateTo test the provider with a local kind cluster, first run:
make dev-debugThis create a dev cluster, install crossplane, and install the provider. You can use k9s to check the status of the cluster. You can also use kubectl to apply and test custom resources.
Then, in another terminal, run
make runThis runs the controller locally.
If you want to run the controller component and the CrossPlane controller in the same local kind cluster, run:
make local-deployBuild, push, and install:
make allBuild binary:
make buildTo start the local e2e test:
export CF_ENVIRONMENT=https://cf-environment.com
export CF_CREDENTIALS={"user": "someuserEmail", "email": "[email protected]", "password": "supersecretPassword"}
make test-acceptanceFor filing bugs, suggesting improvements, or requesting new features, please open an issue.
