Provider for Crossplane to manage and orchestrate Temporal-based workflows using Tempoplane.
- Manage workflows as Crossplane custom resources.
- Observe, create, update, and delete workflows from Kubernetes.
- Install Crossplane.
- Deploy the
provider-tempoplane
. - Define
EntityWorkflow
custom resources to manage your workflows. - Configure your worker via https://github.com/daanvinken/tempoplane
- Use this repository as a tempoplane to create a new one.
- Run
make submodules
to initialize the "build" Make submodule we use for CI/CD. - Rename the provider by running the following command:
export provider_name=MyProvider # Camel case, e.g. GitHub
make provider.prepare provider=${provider_name}
- Add your new type by running the following command:
export group=sample # 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 sample group with your new group in apis/{provider}.go
- Replace the mytype type with your new type in internal/controller/{provider}.go
- Replace the default controller and ProviderConfig implementations with your own
- Run
make reviewable
to run code generation, linters, and tests. - Run
make build
to 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.