/kubefed-operator

Operator for Kubefed

Primary LanguageGoApache License 2.0Apache-2.0

kubefed-operator

Prototype operator for KubeFed. Planned to eventually replace the federation-v2-operator repo.

Note, currently, this operator only supports deploying KubeFed in a namespace-scoped fashion.

Deploying and testing

This work-in-progress section describes how people developing this operator can deploy it.

Using operator-sdk up local

The operator SDK provides a way to run your operator locally outside a cluster. This allows you to easily iterate on changes without having to push an image.

All you need to do is run the following command from the root directory of this project:

$ operator-sdk up local --namespace=federation-test

This will run the operator configured to watch the kubefed-test namespace.

After that step, you can create an KubeFed in the kubefed-test namespace to drive the installation in that namespace:

$ kubectl create -f deploy/crds/operator_v1alpha1_kubefed_cr.yaml -n kubefed-test