Documentation ¶
Index ¶
- Variables
- type Input
- type Reconciler
- func (r *Reconciler) CreateBuilder(mgr ctrl.Manager) (*builder.Builder, error)
- func (r *Reconciler) ForceApply(ctx context.Context, nn types.NamespacedName, spec v1alpha1.LiveUpdateSpec, ...) (v1alpha1.LiveUpdateStatus, error)
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 { // Derived from DockerResource IsDC bool // Derived from KubernetesResource + KubenetesSelector + DockerResource Containers []liveupdates.Container // Derived from FileWatch + Sync rules ChangedFiles []build.PathMapping LastFileTimeSynced metav1.MicroTime }
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( st store.RStore, cu containerupdate.ContainerUpdater, client ctrlclient.Client) *Reconciler
Create a reconciler baked by a fake ContainerUpdater and Client.
func NewReconciler ¶
func NewReconciler( st store.RStore, 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) (v1alpha1.LiveUpdateStatus, error)
Live-update containers by copying files and running exec commands.
Update the apiserver when finished.
We expose this as a public method as a hack! Currently, in Tilt, BuildController decides when to kick off the live update, and run a full image build+deploy if it fails. Eventually we'll invert that relationship, so that BuildController (and other API reconcilers) watch the live update API.
Click to show internal directories.
Click to hide internal directories.