Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Latest commit

 

History

History
70 lines (49 loc) · 1.39 KB

CONTRIBUTING.md

File metadata and controls

70 lines (49 loc) · 1.39 KB

Contributing

Running on the cluster

  1. Build your image with IMG tag:
export IMG=<some-registry>/dragonfly-operator:tag
make docker-build
  1. Make the image available to the cluster:

Note

If you are using kind, You can load the image instead of pushing to a registry by running

make docker-kind-load IMG=<some-registry>/dragonfly-operator:tag
make docker-push
  1. Deploy the controller to the cluster with the image specified by IMG:
make deploy
  1. Verify that the controller is running, and CRD's are installed:
➜ watch kubectl -n dragonfly-operator-system get pods                                                        
NAME                                                     READY   STATUS        RESTARTS   AGE
dragonfly-operator-controller-manager-7b88f9d84b-qnj4c   2/2     Running       0          13m
➜ kubectl get crds                             
NAME                         CREATED AT
dragonflies.dragonflydb.io   2023-04-03T13:29:18Z
  1. Install a sample instance of Custom Resource:
kubectl apply -f config/samples/v1alpha1_dragonfly.yaml
  1. Check the status of the instance:
kubectl describe dragonfly dragonfly-sample

Uninstall CRDs

To delete the CRDs from the cluster:

make uninstall

Undeploy controller

UnDeploy the controller from the cluster:

make undeploy