module
0.0.0-20240313233832-554990d97a6a
Repository: https://github.com/alt-research/operator-kit.git
Documentation: pkg.go.dev
# README
Operator Kit (opkit)
A set of utilities to help writting operators for Kubernetes.
Operator Quick Start
1. Install Kubebuilder
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/
2. Create a new project
kubebuilder init --plugins go/v4 --domain altlayer.io --license apache2 --owner "AltResearch"
3. Create an API
kubebuilder create api --group node --version v1alpha1 --kind Verifier
4. Download Operator Kit
go get -u github.com/altresearch/operator-kit
4. Implement the API
-
every API should have ConditionPhase in its
status
fieldimport . "github.com/altresearch/operator-kit/commonspec" type VerifierStatus struct { //+optional ConditionPhase `json:",inline"` }
-
Use
specutil.ConditionManager
to manage your reconcilation -
Use
specutil.NewControllerManagedBy
to manage your event watching
TODO:
- Check and remove sensitive data and open this project
- Add more examples and docs
- Move specutil and commonspec to project root namespace
# Packages
No description provided by the author
No description provided by the author
+kubebuilder:object:generate=true +groupName=common.altlayer.io.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package targz contains methods to create and extract tar gz archives.
No description provided by the author