How to test DirectPV Operator - cniackz/public GitHub Wiki

Objective:

To show how to test DirectPV Operator

Steps:

  1. Create new kind cluster and install OLM on it:
createcluster
operator-sdk olm install
  1. Build and push the image and the bundle:
rm -rf ~/directpv-helm-operator
cd ~; git clone [email protected]:cniackz/directpv-helm-operator.git
cd ~/directpv-helm-operator; make docker-build docker-push
cd ~/directpv-helm-operator; make bundle bundle-build bundle-push
  1. Install the Operator and its definition:
operator-sdk run bundle quay.io/cniackz4/directpv-operator-bundle:v4.0.6
kubectl apply -f /Users/cniackz/directpv-helm-operator/my-directpv.yaml

It is expected the crash in node controller pod for kind cluster:

Screenshot 2023-08-16 at 1 52 25 PM