Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewReconciler, )
Functions ¶
This section is empty.
Types ¶
type Input ¶ added in v0.22.12
type Input struct { // TODO(nick|milas): Figure out what should happen with this filter.11 Filter model.PathMatcher // Derived from DockerResource IsDC bool // Derived from KubernetesResource + KubenetesSelector + DockerResource Containers []liveupdates.Container // Derived from FileWatch + Sync rules ChangedFiles []build.PathMapping }
type Reconciler ¶
type Reconciler struct { ExecUpdater containerupdate.ContainerUpdater DockerUpdater containerupdate.ContainerUpdater // contains filtered or unexported fields }
Manages the LiveUpdate API object.
func NewFakeReconciler ¶ added in v0.22.12
func NewFakeReconciler( cu containerupdate.ContainerUpdater, client ctrlclient.Client) *Reconciler
Create a reconciler baked by a fake ContainerUpdater and Client.
func NewReconciler ¶
func NewReconciler( dcu *containerupdate.DockerUpdater, ecu *containerupdate.ExecUpdater, updateMode liveupdates.UpdateMode, kubeContext k8s.KubeContext, client ctrlclient.Client, scheme *runtime.Scheme) *Reconciler
Dependency-inject a live update reconciler.
func (*Reconciler) CreateBuilder ¶
func (*Reconciler) ForceApply ¶ added in v0.22.12
func (r *Reconciler) ForceApply( ctx context.Context, nn types.NamespacedName, spec v1alpha1.LiveUpdateSpec, input Input) Status
type Status ¶ added in v0.22.12
type Status struct { // We failed to copy files to the container, but // we don't know why. UnknownError error // The exec command in the container failed. // This can often mean a compiler error that the user // can fix with more live-updates, so don't consider this // a "permanent" failure. ExecError error }
TODO(nick): Merge this with LiveUpdateStatus, which will provide fuller status reporting.
Click to show internal directories.
Click to hide internal directories.