tektonresult

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: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbSecretName  = "tekton-results-postgres"
	TlsSecretName = "tekton-results-tls"
)

Variables

This section is empty.

Functions

func NewController

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

NewController initializes the controller and is called by the generated code Registers event handlers 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 TektonResult resources.

func (*Reconciler) FinalizeKind

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

FinalizeKind removes all resources after deletion of a TektonResult.

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, tr *v1alpha1.TektonResult) 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 {
	// 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, logType string) error

Record the Results reconciled with their log type

func (*Recorder) LogMetrics added in v0.68.0

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

Jump to

Keyboard shortcuts

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