Documentation ¶
Overview ¶
Package seedinit contains a controller that is responsible for setting up new Seed clusters. This primarily means installing all related CRDs.
This is not part of the regular seed-operator code, as that one is based on creating watches *inside* the seed clusters, which will fail if no CRDs are available yet. Instead of adding lots of exceptions and corner cases into the seed-operator, this dedicated controller takes over the job. The seed-operator however afterwards keeps the CRDs up-to-date (because it can, as mentioned, watch them for changes).
Index ¶
Constants ¶
const (
// This controller is responsible for the initial setup of new Seed clusters.
ControllerName = "kkp-seed-init-operator"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler (re)stores all components required for running a Kubermatic seed cluster.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile acts upon requests and will restore the state of resources for the given namespace. Will return an error if any API operation failed, otherwise will return an empty dummy Result struct.