Documentation ¶
Index ¶
- Variables
- func MaybeUpdateStatus(ctx context.Context, ctrlClient ctrlclient.Client, iTarget model.ImageTarget, ...)
- func ToBuildingStatus(iTarget model.ImageTarget, startTime metav1.MicroTime) v1alpha1.DockerImageStatus
- func ToCompletedFailStatus(iTarget model.ImageTarget, startTime metav1.MicroTime, ...) v1alpha1.DockerImageStatus
- func ToCompletedSuccessStatus(iTarget model.ImageTarget, startTime metav1.MicroTime, ...) v1alpha1.DockerImageStatus
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewReconciler, )
Functions ¶
func MaybeUpdateStatus ¶
func MaybeUpdateStatus(ctx context.Context, ctrlClient ctrlclient.Client, iTarget model.ImageTarget, status v1alpha1.DockerImageStatus)
Write the image status to the API server, if necessary. If the image write fails, log it to the debug logs and move on.
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.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Manages the DockerImage API object.
func NewReconciler ¶
func NewReconciler(client ctrlclient.Client) *Reconciler
func (*Reconciler) CreateBuilder ¶
Click to show internal directories.
Click to hide internal directories.