tektonchain

package
v0.70.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Chains ConfigMap
	ChainsConfig = "chains-config"
)

Variables

This section is empty.

Functions

func AddControllerEnv added in v0.68.0

func AddControllerEnv(controllerEnvs []corev1.EnvVar) mf.Transformer

func NewController

func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl

NewController initializes the controller and is called by the generated code Registers eventhandlers to enqueue events

func NewExtendedController

func NewExtendedController(generator common.ExtensionGenerator) injection.ControllerConstructor

NewExtendedController returns a controller extended to a specific platform

Types

type Reconciler

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

Reconciler implements controller.Reconciler for TektonChain resources.

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, original *v1alpha1.TektonChain) pkgreconciler.Event

FinalizeKind removes all resources after deletion of a TektonChain.

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, tc *v1alpha1.TektonChain) pkgreconciler.Event

ReconcileKind compares the actual state with the desired, and attempts to converge the two.

type Recorder added in v0.68.0

type Recorder struct {
	ReportingPeriod time.Duration
	// contains filtered or unexported fields
}

Recorder holds keys for Tekton metrics

func NewRecorder added in v0.68.0

func NewRecorder() (*Recorder, error)

NewRecorder creates a new metrics recorder instance to log the PipelineRun related metrics

func (*Recorder) Count added in v0.68.0

func (r *Recorder) Count(version string, spec v1alpha1.TektonChainSpec) error

Logs when chains is reconciled with version and config labels.

func (*Recorder) LogMetrics added in v0.68.0

func (m *Recorder) LogMetrics(version string, spec v1alpha1.TektonChainSpec, logger *zap.SugaredLogger)

Jump to

Keyboard shortcuts

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