Swap-Provider-MongoDB

module
v0.0.0-...-d220953 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2025 License: Apache-2.0

README

provider-mongodb

provider-mongodb is a minimal Crossplane Provider that is meant to be used as a ingress 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 ingress 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 follwing command:
  make provider.prepare provider={PascalProviderName}
  1. Add your new type by running the following command:
make provider.addtype provider={PascalProviderName} 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.

Directories

Path Synopsis
Package apis contains Kubernetes API for the App Gateway provider.
Package apis contains Kubernetes API for the App Gateway provider.
connectivity
Package connectivity contains group Security API versions
Package connectivity contains group Security API versions
connectivity/v1alpha1
Package v1alpha1 contains the v1alpha1 group Organization resources of the mongodb provider.
Package v1alpha1 contains the v1alpha1 group Organization resources of the mongodb provider.
organization
Package organization contains group Organization API versions
Package organization contains group Organization API versions
organization/v1alpha1
Package v1alpha1 contains the organization resources of the mongodb provider.
Package v1alpha1 contains the organization resources of the mongodb provider.
v1alpha1
Package v1alpha1 contains the core resources of the mongodb provider.
Package v1alpha1 contains the core resources of the mongodb provider.
cmd
provider command
Package main
Package main
internal
clients
Package clients for provider-mongodb clients
Package clients for provider-mongodb clients
clients/atlas
Package organization for the mongodb client
Package organization for the mongodb client
clients/connectivity
Package organization for the mongodb client
Package organization for the mongodb client
controller
Package controller for controller doc
Package controller for controller doc
controller/config
Package config for provider config
Package config for provider config
controller/features
Package features sets feature flags
Package features sets feature flags

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL