Skip to content

Upgrading sigs.k8s.io/controller-runtime 0.3 to 0.4

Breakingv0.3.0 → v0.4.0Breaking4New9Changed1Fixed9

BreakingUpgrade verdict

4 breaking changes.

  • Semantic change: don't error on missing watched types in controller.New: due to changes in when controllers start their watches, you will no longer receive errors if your watch types aren't…
  • Soft-bump to Go 1.13 -- this will not break anyone at the moment, but Go 1.13 features (particularly errors) may be adopted in a future feature release.
  • Bump to kube-1.16.0 -- this is breaking due to a change in metav1.ObjectMeta.
  • Minor change in home directory resolution: when resolving home directories, we now use $HOME instead of user.Current().
Top 3 of 4 that need code or config changes
Breaking4
Semantic change: don't error on missing watched types in controller.New: due to changes in when controllers start their watches, you will no longer receive errors if your watch types aren't…
controller.NewBuilder.Complete
Soft-bump to Go 1.13 -- this will not break anyone at the moment, but Go 1.13 features (particularly errors) may be adopted in a future feature release.
Bump to kube-1.16.0 -- this is breaking due to a change in metav1.ObjectMeta.
Minor change in home directory resolution: when resolving home directories, we now use $HOME instead of user.Current().
$HOMEuser.Current()kubectl

Generated by DepDelta from published Go source. Not mixed with prose notes.

  • added: func AddFinalizer(metav1.Object, string)
  • added: func AddFinalizerWithError(runtime.Object, string) error
  • added: func RemoveFinalizer(metav1.Object, string)
  • added: func RemoveFinalizerWithError(runtime.Object, string) error
  • added: field CheckHandler.Checker: embedded Checker
  • added: field Handler.Checks: map[string]Checker
  • added: method CheckHandler.ServeHTTP(http.ResponseWriter, *http.Request)
  • added: method Handler.ServeHTTP(http.ResponseWriter, *http.Request)
  • added: type CheckHandler: struct
  • added: type Checker: func(req *http.Request) error
  • added: type Handler: struct
  • added: var Ping: Checker
  • added: func Encoder(zapcore.Encoder) func(o *Options)
  • added: func Level(*zap.AtomicLevel) func(o *Options)
  • added: func RawZapOpts(...zap.Option) func(o *Options)
  • added: func StacktraceLevel(*zap.AtomicLevel) func(o *Options)
  • added: func UseDevMode(bool) Opts
  • added: func WriteTo(io.Writer) Opts
  • added: field Options.HealthProbeBindAddress: string
  • added: field Options.LivenessEndpointName: string
  • added: field Options.ReadinessEndpointName: string
  • added: method Manager.AddHealthzCheck(string, healthz.Checker) error
  • added: method Manager.AddReadyzCheck(string, healthz.Checker) error