A template for building @crossplane providers.
Go to file
Chuan-Yen Chiang 24d7564b2d
Merge pull request #102 from crossplane/renovate/actions-cache-4.x
chore(deps): update actions/cache action to v4
2025-05-13 09:00:23 +02:00
.github Merge pull request #102 from crossplane/renovate/actions-cache-4.x 2025-05-13 09:00:23 +02:00
apis Commit changes 2025-04-30 22:32:27 +08:00
build@1ed19332b9 * Bump up crossplane-runtime to v1.18.0 2024-12-30 09:41:46 +01:00
cluster Update gcr.io/distroless/static Docker digest to 4197211 2024-05-29 23:42:36 +00:00
cmd/provider Inject noop logger by default to ctrl-runtime to avoid warnings 2025-05-08 13:56:07 +02:00
examples update packages 2024-02-16 19:12:36 +01:00
hack Update 2025-04-30 22:28:50 +08:00
internal Update templates 2025-04-30 22:01:59 +08:00
package * Bump up crossplane-runtime to v1.19.0 2025-04-19 01:08:58 +08:00
.gitignore Switch provider-template to use the Upbound build submodule 2021-12-08 21:17:28 +00:00
.gitmodules Switch to crossplane/build 2024-05-15 18:36:12 -07:00
.golangci.yml Bump up golangci-lint to v2.1.2, and workflow to v7 2025-04-19 02:04:30 +08:00
CODE_OF_CONDUCT.md add DCO and code of conduct 2021-11-17 15:52:16 +01:00
DCO add DCO and code of conduct 2021-11-17 15:52:16 +01:00
LICENSE Initial project scaffolding 2020-03-31 08:27:49 -05:00
Makefile Merge pull request #111 from JohanSandblom3/main 2025-04-30 11:05:51 +08:00
OWNERS.md chore: Update OWNERS.md for new maintainers jbw976 and cychiang 2025-04-21 18:54:55 +02:00
PROVIDER_CHECKLIST.md update repository guidance 2022-05-04 08:45:15 -05:00
README.md Update README for improved generation steps 2023-07-31 09:26:03 +03:00
go.mod Fix imports 2025-04-30 21:33:47 +08:00
go.sum * Bump up crossplane-runtime to v1.19.0 2025-04-19 01:08:58 +08:00
renovate.json Add renovate.json 2023-12-15 05:36:30 +00:00

README.md

provider-template

provider-template is a minimal Crossplane Provider that is meant to be used as a template for implementing new Providers. It comes with the following features that are meant to be refactored:

  • A ProviderConfig type that only points to a credentials Secret.
  • A MyType resource type that serves as an example managed resource.
  • A managed resource controller that reconciles MyType objects and simply prints their configuration in its Observe method.

Developing

  1. Use this repository as a template to create a new one.
  2. Run make submodules to initialize the "build" Make submodule we use for CI/CD.
  3. Rename the provider by running the following command:
  export provider_name=MyProvider # Camel case, e.g. GitHub
  make provider.prepare provider=${provider_name}
  1. 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}
  1. Replace the sample group with your new group in apis/{provider}.go
  2. Replace the mytype type with your new type in internal/controller/{provider}.go
  3. Replace the default controller and ProviderConfig implementations with your own
  4. Run make reviewable to run code generation, linters, and tests.
  5. 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.