Skip to content

openeverest/provider-percona-server-mongodb

Repository files navigation

Percona Server MongoDB Provider

This directory contains a implementation of a Percona Server MongoDB (PSMDB) provider.

🚀 Quick Start

Prerequisites

  1. A Kubernetes cluster:

    make k3d-cluster-up
    
  2. Generate Provider CR manifests (if changed):

    make generate
  3. Install CRDs:

    make install

Run the Provider

make run

Create a Test

kubectl apply -f examples/instance-simple.yaml

Watch the provider logs and check the PSMDB resource:

kubectl get psmdb
kubectl get instance

🧪 Running Integration Tests

The test/integration/ directory contains kuttl tests that verify the provider's behavior.

Prerequisites for Tests

  1. SDK CRDs installed (see Quick Start above)
  2. Provider running in the background:
    make run

Running the Tests

# From the examples directory:
make test-integration

# Or run directly:
cd examples
. ./test/vars.sh && kubectl kuttl test --config ./test/integration/kuttl.yaml

Note: The tests assume the provider is already running and will create/update/delete Instance resources to verify correct behavior.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors