This directory contains a implementation of a Percona Server MongoDB (PSMDB) provider.
-
A Kubernetes cluster:
make k3d-cluster-up -
Generate Provider CR manifests (if changed):
make generate
-
Install CRDs:
make install
make runkubectl apply -f examples/instance-simple.yamlWatch the provider logs and check the PSMDB resource:
kubectl get psmdb
kubectl get instanceThe test/integration/ directory contains kuttl tests that verify the provider's behavior.
- SDK CRDs installed (see Quick Start above)
- Provider running in the background:
make run
# From the examples directory:
make test-integration
# Or run directly:
cd examples
. ./test/vars.sh && kubectl kuttl test --config ./test/integration/kuttl.yamlNote: The tests assume the provider is already running and will create/update/delete Instance resources to verify correct behavior.