You’ll need a Kubernetes cluster to run against. You can use KIND to get a local cluster for testing, or run against a remote cluster. Note: Controller will automatically use the current context in your kubeconfig file (i.e. whatever cluster kubectl cluster-info shows).
Everest operator provides an unified CR definition to create the following database cluster
- Percona Server for MongoDB
- Percona XtraDB Cluster
- Postgres
- Percona Server (Coming soon)
Everest operator relies on upstream operator to create a database cluster and once a user wants to create PXC clusters the following steps should be done
- PXC operator is installed and running
- Everest operator is installed and running
One needs to have the following dependencies installed on the local environment
- Go
- Kind
- Docker
- Make
make install run
make install
- Install Instances of Custom Resources:
kubectl apply -f config/samples/
To delete the CRDs from the cluster:
make uninstall
- Install the CRDs into the cluster:
make install
- Run your controller (this will run in the foreground, so switch to a new terminal if you want to leave it running):
make run
NOTE: You can also run this in one step by running: make install run
If you are editing the API definitions, generate the manifests such as CRs or CRDs using:
make manifests
NOTE: Run make --help
for more information on all potential make
targets
More information can be found via the Kubebuilder Documentation
We use kuttl and envtests as well as unit tests for local development
- Kuttl tests can be found in
e2e-tests
directory - Other tests can be found in
*_test.go
files
See Git Workflow.
As a PR created you are responsible to:
- make sure PR is ready (linted, tested and etc)
- make sure it is reviewed (ask for review, ping reviewers and etc)
- make sure it is merged
- merge when it is reviewed and tested
- ask code owners/admins to merge it if merging is blocked for some reason
Once your pull request is merged, you are an official Percona Community Contributor. Welcome to the community!
We're looking forward to your contributions and hope to hear from you soon on our Forums.