! Support development of this project > patreon.com/iximiuz
A collection of mini-programs demonstrating various client-go use cases augmented by a preconfigured online development environment. Inspired by client-go/examples.
The intention (at least so far) is to test a (more or less) fresh version of Go and packages against a few latest Kubernetes versions.
What is tested at the moment:
go 1.18
k8s.io/client-go v0.23.1 v0.24.7 v0.25.3
Kubernetes v1.22.15 1.23.12 v1.24.6 v1.25.2
Most examples expect minikube
with at least two Kubernetes clusters - shared1
and shared2
.
curl -sLS https://get.arkade.dev | sudo sh
arkade get minikube kubectl
minikube start --profile shared1
minikube start --profile shared2
Oversimplified (for now):
cd <program>
go run main.go
- Add more assertions to mini-programs
- Examples to be covered
- setting API request timeout
- configuring API request throttling
delete
delete collection
list
filtrationwatch
filtrationinformer
filtrationpatch
with different strategiesServer Side Apply
(SSA)- working with subresources
ownerReference
(one and many)- optimistic locking
- https://stackoverflow.com/questions/56115197/how-to-idiomatically-fill-empty-fields-with-default-values-for-kubernetes-api-ob
Contributions are always welcome! Want to participate but don't know where to start? The TODO list above could give you some ideas. Before jumping to the code, please create an issue describing the addition/change first. This will allow me to coordinate the effort and make sure multiple people don't work on the same task.