dockerimage

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(
	NewReconciler,
)

Functions

func ToBuildingStatus

func ToBuildingStatus(iTarget model.ImageTarget, startTime metav1.MicroTime) v1alpha1.DockerImageStatus

Return a basic Building Status.

func ToCompletedFailStatus

func ToCompletedFailStatus(iTarget model.ImageTarget, startTime metav1.MicroTime,
	stages []v1alpha1.DockerImageStageStatus, err error) v1alpha1.DockerImageStatus

Return a completed status when the image build failed.

func ToCompletedSuccessStatus

func ToCompletedSuccessStatus(iTarget model.ImageTarget, startTime metav1.MicroTime,
	stages []v1alpha1.DockerImageStageStatus, refs container.TaggedRefs) v1alpha1.DockerImageStatus

Return a completed status when the image build succeeded.

func UpdateImageMap added in v0.27.1

func UpdateImageMap(
	ctx context.Context,
	docker docker.Client,
	iTarget model.ImageTarget,
	cluster *v1alpha1.Cluster,
	imageMaps map[types.NamespacedName]*v1alpha1.ImageMap,
	startTime *metav1.MicroTime,
	taggedRefs container.TaggedRefs,
) (store.ImageBuildResult, error)

A helper function for updating the imagemap from dockerimage.Reconciler and cmdimage.Reconciler. This is mainly for easing the transition to reconcilers.

Types

type Reconciler

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

Manages the DockerImage API object.

func NewReconciler

func NewReconciler(client ctrlclient.Client, st store.RStore, scheme *runtime.Scheme, docker docker.Client, ib *build.ImageBuilder) *Reconciler

func (*Reconciler) CreateBuilder

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

func (*Reconciler) ForceApply added in v0.27.1

Build the image, and push it if necessary.

The error is simply the "main" build failure reason.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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