controllers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FIELD_MANAGER           = "pipelinetrigger-controller"
	PULLREQUEST_KIND_NAME   = "PullRequest"
	IMAGEPOLICY_KIND_NAME   = "ImagePolicy"
	GITREPOSITORY_KIND_NAME = "GitRepository"
)

Variables

This section is empty.

Functions

func ListTektonResources added in v0.5.0

func ListTektonResources(ctx context.Context, client dynamic.DynamicClient, namespace string, tektonGroup string, tektonVersion string, tektonResource string) (unstructured.UnstructuredList, error)

Types

type Param added in v0.5.0

type Param struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type PipelineTriggerReconciler

type PipelineTriggerReconciler struct {
	client.Client
	DynamicClient dynamic.DynamicClient
	Log           logr.Logger
	Scheme        *runtime.Scheme

	MetricsRecorder          *metricsApi.Recorder
	SecondClusterEnabled     bool
	SecondClusterAddr        string
	SecondClusterBearerToken string
	// contains filtered or unexported fields
}

PipelineTriggerReconciler reconciles a PipelineTrigger object

func (*PipelineTriggerReconciler) Reconcile

`Reconcile` will be in charge of reconciling the state of PipelineTriggers. PipelineTriggers are used to manage PipelineRuns, which are created whenever the Source defined in the PipelineTrigger is updated. When the Source detects new version, a new Tekton PipelineRun starts

func (*PipelineTriggerReconciler) SetupWithManager

func (r *PipelineTriggerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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