A set of utilities to help writting operators for Kubernetes.
https://book.kubebuilder.io/quick-start.html#installation
# download kubebuilder and install locally.
curl -L -o kubebuilder "https://go.kubebuilder.io/dl/latest/$(go env GOOS)/$(go env GOARCH)"
chmod +x kubebuilder && mv kubebuilder /usr/local/bin/kubebuilder init --plugins go/v4 --domain altlayer.io --license apache2 --owner "AltResearch"kubebuilder create api --group node --version v1alpha1 --kind Verifiergo get -u github.com/altresearch/operator-kit-
every API should have ConditionPhase in its
statusfieldimport . "github.com/altresearch/operator-kit/commonspec" type VerifierStatus struct { //+optional ConditionPhase `json:",inline"` }
-
Use
specutil.ConditionManagerto manage your reconcilation -
Use
specutil.NewControllerManagedByto manage your event watching
- Check and remove sensitive data and open this project
- Add more examples and docs
- Move specutil and commonspec to project root namespace