Spring Cloud Data Flow Provider is a Crossplane provider. It was build based on the Crossplane Template. It is used to manage and configure Spring Cloud Data Flow. It uses the Rest API
Repository and package:
xpkg.upbound.io/denniskniep/provider-springclouddataflow:<version>
Provider Credentials Structure:
{
"url": "http://dataflow:9393/"
}
Create a DeploymentRuntimeConfig and set the arg --debug on the package-runtime container
Currently covered Managed Resources:
Reference for properties: https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#configuration-kubernetes-app-props
- Add new type by running the following command:
export provider_name=SpringCloudDataFlow
export group=core # lower case e.g. core, cache, database, storage, etc.
export type=MyType # Camel casee.g. Bucket, Database, CacheCluster, etc.
make provider.addtype provider=${provider_name} group=${group} kind=${type}-
Replace the core group with your new group in apis/{provider}.go
-
Replace the MyType type with your new type in internal/controller/{provider}.go
-
Run
make reviewableto run code generation, linters, and tests. (make generateto only run code generation) -
Run
make buildto build the provider.
Refer to Crossplane's CONTRIBUTING.md file for more information on how the Crossplane community prefers to work. The Provider Development guide may also be of use.
Start SpringCloudDataFlow environment for tests
sudo docker-compose -f tests/docker-compose.yaml up
UI: http://localhost:9393/dashboard
OpenAPI Spec: http://localhost:9393/v3/api-docs
Swagger-Ui: http://localhost:9393/swagger-ui/index.html