Skip to content

v0.3.77

Compare
Choose a tag to compare

Enhancements

  • New methods are added to cluster.Client:

    type Client interface {
        // ...
        // Return a rest config for this client.
        Config() *rest.Config
        // Return a http client for this client.
        HttpClient() *http.Client
    }
  • In addition there is a new reconciler option

    type ReconcilerOptions struct {
        // ...
        // NewClient allows to modify or replace the default client used by the reconciler.
        // The returned client is used by the reconciler to manage the component instances, and passed to hooks.
        // Its scheme therefore must recognize the component type.
        NewClient NewClientFunc
    }

    with

    type NewClientFunc func(clnt cluster.Client) (cluster.Client, error)

    This allow to replace or modify the default component/hook client that would be used by the reconciler

    • to manage component instances
    • when calling hooks.