Experimental freeipa-operator for Freeipa.
-
Clone the repository by:
git clone https://github.com/freeipa/freeipa-operator.git cd freeipa-operator
-
Install the necessary tools by:
./devel/install-local-tools.sh
-
Build by:
make
-
Launch tests by:
make test
-
Run locally outside the cluster by:
make install make run ENABLE_WEBHOOKS=false
-
Or run inside the cluster by (first build and push the image):
kubectl login https://my-cluster:6443 make container-build IMG=quay.io/freeipa/freeipa-operator:dev-test podman login quay.io make container-push IMG=quay.io/freeipa/freeipa-operator:dev-test make deploy IMG=quay.io/freeipa/freeipa-operator:dev-test
-
And clean-up the cluster by:
kubectl delete -f config/samples/freeipa_v1alpha1_freeipa.yaml kubectl delete deployments,service -l control-plane=controller-manager kubectl delete role,rolebinding --all kustomize build config/default | kubectl delete -f -
See also: Operator SDK 1.0.0 - Quick Start.