Please complete the following steps before the tutorial to avoid conference wifi issues:
- Ensure you have the kubebuilder dependencies installed from https://book.kubebuilder.io/quick-start.html -- particularly:
- Go 1.13, or Go 1.12 and the
GO111MODULE=on
environment variable set. - The latest kubebuilder (from https://go.kubebuilder.io/dl) and the specified version of kustomize.
- Go 1.13, or Go 1.12 and the
- Pre-download the Go dependencies: make a new directory (e.g.
~/kubecon-workshop
), and in that directory do the following:go mod init something
(initialize a module to ensurego get
runs in module mod)go get sigs.k8s.io/controller-tools/cmd/controller-gen sigs.k8s.io/controller-runtime
(mark controller-gen and controller-runtime as dependencies)go mod download
(double check that things are pre-download)
- Clone the example repo from https://github.com/directxman12/kubebuilder-workshops
- (optional) have a Kubernetes 1.16 cluster to play around with. We'll be providing resources for folks who don't, but you may find it easier to run a cluster ahead of time. If you don't have easy access, a KinD cluster is easy to set up on your personal computer: https://kind.sigs.k8s.io/docs/user/quick-start/
If you don't have access to any of these, we'll have resources available at the tutorial, so don't be discouraged :-)