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 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 ¶
func (r *PipelineTriggerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
`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.
Click to show internal directories.
Click to hide internal directories.