build

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconcilerName = "Builds"
	Kind           = "Build"

	ReasonCompleted = "Completed"
)

Variables

This section is empty.

Functions

func NewController

func NewController(ctx context.Context, opt reconciler.Options, k8sClient k8sclient.Interface, informer buildinformers.BuildInformer, podInformer corev1Informers.PodInformer, metadataRetriever MetadataRetriever, podGenerator PodGenerator, podProgressLogger *buildchange.ProgressLogger, keychainFactory registry.KeychainFactory, injectedSidecarSupport bool) *controller.Impl

Types

type ByCreationTimestamp

type ByCreationTimestamp []*buildapi.Build

func (ByCreationTimestamp) Len

func (o ByCreationTimestamp) Len() int

func (ByCreationTimestamp) Less

func (o ByCreationTimestamp) Less(i, j int) bool

func (ByCreationTimestamp) Swap

func (o ByCreationTimestamp) Swap(i, j int)

type MetadataRetriever

type MetadataRetriever interface {
	GetBuildMetadata(string, string, authn.Keychain) (*cnb.BuildMetadata, error)
}

type PodGenerator

type PodGenerator interface {
	Generate(context.Context, buildpod.BuildPodable) (*corev1.Pod, error)
}

type PodProgressLogger added in v0.12.0

type PodProgressLogger interface {
	GetTerminationMessage(pod *corev1.Pod, s *corev1.ContainerStatus) (string, error)
}

type Reconciler

type Reconciler struct {
	Client                 versioned.Interface
	KeychainFactory        registry.KeychainFactory
	Lister                 buildlisters.BuildLister
	MetadataRetriever      MetadataRetriever
	K8sClient              k8sclient.Interface
	PodLister              v1Listers.PodLister
	PodGenerator           PodGenerator
	PodProgressLogger      PodProgressLogger
	InjectedSidecarSupport bool
}

func (*Reconciler) Reconcile

func (c *Reconciler) Reconcile(ctx context.Context, key string) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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