David Fry c02c6fcc3f Merge pull request #3 from callum-stakater/pr/nbnetwork-dup-create-fix
fix(nbnetwork,nbnetworkresource,nbnetworkrouter): nil-safe group resolution + Observe error handling + external-name recovery
2026-05-22 20:48:29 +01:00
2026-01-13 13:12:31 +00:00
2025-03-10 15:04:50 +00:00
2025-03-26 16:08:00 +01:00
2026-01-13 13:12:31 +00:00
2025-03-10 15:04:50 +00:00
2025-03-10 15:04:50 +00:00
2025-03-10 15:04:50 +00:00
2025-03-10 15:04:50 +00:00
2025-03-10 15:04:50 +00:00
2025-03-10 15:04:50 +00:00
2025-03-10 15:04:50 +00:00
2025-05-26 19:32:14 +01:00
2025-03-10 15:04:50 +00:00
2025-03-10 15:04:50 +00:00

netbird-crossplane-provider

netbird-crossplane-provider is a minimal Crossplane Provider that is meant to be used as a netbird 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 netbird 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.

S
Description
No description provided
Readme Apache-2.0 473 KiB
Languages
Go 89.1%
Go Template 5.1%
Shell 3.1%
Makefile 2.4%
Dockerfile 0.3%