Documentation ¶
Index ¶
- Variables
- func ToBuildingStatus(iTarget model.ImageTarget, startTime metav1.MicroTime) v1alpha1.CmdImageStatus
- func ToCompletedFailStatus(iTarget model.ImageTarget, startTime metav1.MicroTime, err error) v1alpha1.CmdImageStatus
- func ToCompletedSuccessStatus(iTarget model.ImageTarget, startTime metav1.MicroTime, ...) v1alpha1.CmdImageStatus
- type Reconciler
- func (r *Reconciler) CreateBuilder(mgr ctrl.Manager) (*builder.Builder, error)
- func (r *Reconciler) ForceApply(ctx context.Context, iTarget model.ImageTarget, customBuildCmd *v1alpha1.Cmd, ...) (store.ImageBuildResult, 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 ¶
func ToBuildingStatus ¶
func ToBuildingStatus(iTarget model.ImageTarget, startTime metav1.MicroTime) v1alpha1.CmdImageStatus
Return a basic Building Status.
func ToCompletedFailStatus ¶
func ToCompletedFailStatus(iTarget model.ImageTarget, startTime metav1.MicroTime, err error) v1alpha1.CmdImageStatus
Return a completed status when the image build failed.
func ToCompletedSuccessStatus ¶
func ToCompletedSuccessStatus(iTarget model.ImageTarget, startTime metav1.MicroTime, refs container.TaggedRefs) v1alpha1.CmdImageStatus
Return a completed status when the image build succeeded.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Manages the CmdImage 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 (*Reconciler) ForceApply ¶ added in v0.27.1
func (r *Reconciler) ForceApply( ctx context.Context, iTarget model.ImageTarget, customBuildCmd *v1alpha1.Cmd, cluster *v1alpha1.Cluster, imageMaps map[types.NamespacedName]*v1alpha1.ImageMap, ps *build.PipelineState) (store.ImageBuildResult, error)
Build the image, and push it if necessary.
The error is simply the "main" build failure reason.
Click to show internal directories.
Click to hide internal directories.