Update Kubebuilder
Update the Kubebuilder install
Install the latest version of kubebuilder from releases page.
Update Existing Project's Dependencies
Kubebuilder 1.0.1 and earlier
Before following the instructions below, make sure to update Kubebuilderto 1.0.2+, update your dependency file to the latest version by usingkubebuilder update vendor
(seebelow). See the dependenciesguide for more information on why this is necessary.
You can update dependencies to minor and patch versions usingdep, as you would any other dependency inyour project. See the dependenciesguide for moreinformation.
Updating to New Major Versions
Update your project's dependencies to the latest version of the libraries used by kubebuilder. Thiswill modify Gopkg.toml by rewriting the [[override]]
elements beneath the# DO NOT MODIFY BELOW THIS LINE.
line. Rules added by the user above this line will be retained.
Gopkg.toml's without the # DO NOT MODIFY BELOW THIS LINE.
will be ignored.
kubebuilder update vendor
By Hand
You can also update your project by hand. Simply edit Gopkg.toml
topoint to a new version of the dependencies listed under the # DO NOTMODIFY BELOW THIS LINE.
line, making sure thatsigs.k8s.io/controller-tools
and sigs.k8s.io/controller-runtime
alwayshave the same version listed. You should then remove the marker line toindicate that you've updated dependencies by hand, and don't want themoverridden.