Documentation ¶
Index ¶
- func ApplyReplacements(build *v1alpha1.Build, replacements map[string]string) *v1alpha1.Build
- func ApplyTemplate(u *v1alpha1.Build, tmpl v1alpha1.BuildTemplateInterface) (*v1alpha1.Build, error)
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- type Reconciler
- type TimeoutSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyReplacements ¶ added in v0.3.0
ApplyReplacements replaces placeholders for declared parameters with the specified replacements.
func ApplyTemplate ¶ added in v0.3.0
func ApplyTemplate(u *v1alpha1.Build, tmpl v1alpha1.BuildTemplateInterface) (*v1alpha1.Build, error)
ApplyTemplate applies the values in the template to the build, and replaces placeholders for declared parameters with the build's matching arguments.
func NewController ¶
NewController returns a new build controller
Types ¶
type Reconciler ¶
type Reconciler struct { // Sugared logger is easier to use but is not as performant as the // raw logger. In performance critical paths, call logger.Desugar() // and use the returned raw logger instead. In addition to the // performance benefits, raw logger also preserves type-safety at // the expense of slightly greater verbosity. Logger *zap.SugaredLogger // contains filtered or unexported fields }
Reconciler is the controller.Reconciler implementation for Builds resources
type TimeoutSet ¶ added in v0.4.0
type TimeoutSet struct {
// contains filtered or unexported fields
}
TimeoutSet contains required k8s interfaces to handle build timeouts
func NewTimeoutHandler ¶ added in v0.4.0
func NewTimeoutHandler(logger *zap.SugaredLogger, kubeclientset kubernetes.Interface, buildclientset clientset.Interface, stopCh <-chan struct{}) *TimeoutSet
NewTimeoutHandler returns TimeoutSet filled structure
func (*TimeoutSet) CheckTimeouts ¶ added in v0.4.0
func (t *TimeoutSet) CheckTimeouts()
CheckTimeouts walks through all builds and creates t.wait goroutines that handles build timeout
Source Files ¶
Click to show internal directories.
Click to hide internal directories.