dockercomposeservice

package
v0.31.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DisableSubscriber added in v0.26.0

type DisableSubscriber struct {
	// contains filtered or unexported fields
}

func NewDisableSubscriber added in v0.26.0

func NewDisableSubscriber(ctx context.Context, dcc dockercompose.DockerComposeClient, clock clockwork.Clock) *DisableSubscriber

func (*DisableSubscriber) Reconcile added in v0.26.0

func (w *DisableSubscriber) Reconcile(ctx context.Context)

func (*DisableSubscriber) UpdateQueue added in v0.26.0

func (w *DisableSubscriber) UpdateQueue(rs resourceState)

type ProjectWatch added in v0.26.2

type ProjectWatch struct {
	// contains filtered or unexported fields
}

Keeps track of the projects we're currently watching.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(
	ctrlClient ctrlclient.Client,
	dcc dockercompose.DockerComposeClient,
	dc docker.Client,
	st store.RStore,
	scheme *runtime.Scheme,
	disableQueue *DisableSubscriber,
) *Reconciler

func (*Reconciler) CreateBuilder

func (r *Reconciler) CreateBuilder(mgr ctrl.Manager) (*builder.Builder, error)

func (*Reconciler) ForceApply

Apply the DockerCompose service spec, unconditionally, and requeue the reconciler so that it updates the apiserver.

We expose this as a public method as a hack! Currently, in Tilt, BuildController handles dependencies between resources. The API server doesn't know about build dependencies yet. So Tiltfile-owned resources are applied manually, rather than going through the normal reconcile system.

func (*Reconciler) ForceDelete added in v0.30.13

A helper that deletes the Docker Compose service, even if they haven't been applied yet.

Primarily intended so that the build controller can do force restarts.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Redeploy the docker compose service when its spec changes or any of its dependencies change.

type Result added in v0.26.0

type Result struct {
	Name             types.NamespacedName
	Spec             v1alpha1.DockerComposeServiceSpec
	ImageMapSpecs    []v1alpha1.ImageMapSpec
	ImageMapStatuses []v1alpha1.ImageMapStatus
	ProjectHash      string

	Status v1alpha1.DockerComposeServiceStatus
}

Keeps track of the state we currently know about.

func (*Result) SetImageMapInputs added in v0.26.2

func (r *Result) SetImageMapInputs(spec v1alpha1.DockerComposeServiceSpec, imageMaps map[types.NamespacedName]*v1alpha1.ImageMap)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL