providerperconaservermongodb

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README ¶

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.

Documentation ¶

The Go Gopher

There is no documentation for this package.

Directories ¶

Path Synopsis
cmd
provider command
package main implements the provider for Percona Server MongoDB Operator.
package main implements the provider for Percona Server MongoDB Operator.
Package definition contains shared types used across the provider definition.
Package definition contains shared types used across the provider definition.
backupclasses/percona-backup-mongodb
Package perconabackupmongodb contains the schema-bearing Go types for the "percona-backup-mongodb" BackupClass.
Package perconabackupmongodb contains the schema-bearing Go types for the "percona-backup-mongodb" BackupClass.
components
Package components contains custom spec types for provider component types.
Package components contains custom spec types for provider component types.
topologies/replicaSet
Package replicaset contains custom spec types for the replica set topology.
Package replicaset contains custom spec types for the replica set topology.
topologies/sharded
Package sharded contains custom spec types for the sharded cluster topology.
Package sharded contains custom spec types for the sharded cluster topology.
internal
common
Package common defines shared constants for the PSMDB provider.
Package common defines shared constants for the PSMDB provider.

Jump to

Keyboard shortcuts

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