Sample Operator for https://github.com/stefanprodan/podinfo
Create a local kubernetes cluster with your preferred method. Then we can run the operator, which will connect to the provided cluster
make install run
Once the operator is running, we can apply the sample CRD using
kubectl apply -f config/samples/apps_v1alpha1_podinfo.yaml
This will install Bitnami's Redis Chart, as well as the PodInfo Service connected to it.
The operator does not deploy an ingress resource for the podinfo service. To connect to it, port-forward to the service instead
kubectl port-forward svc/podinfo-sample -n default 9898
Unit tests can be ran using
make test
End to end tests can be executed using
kind create cluster # Kind cluster is required for e2e, skip if you have one already
make test-e2e