Help us shape the future of Go! Take the 2026 Go Developer Survey

controllers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIGroup is a group of api
	APIGroup = "cicdapi.tmax.io"
)

Variables

This section is empty.

Functions

func NewIntegrationJobReconciler added in v0.2.0

func NewIntegrationJobReconciler(cli client.Client, scheme *runtime.Scheme, log logr.Logger) *integrationJobReconciler

NewIntegrationJobReconciler is a constructor of integrationJobReconciler

func WaitIngressReady

func WaitIngressReady() error

WaitIngressReady waits until ingress is ready (i.e., loadbalancer ip is set)

Types

type ApprovalReconciler

type ApprovalReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ApprovalReconciler reconciles a Approval object

func (*ApprovalReconciler) Reconcile

func (r *ApprovalReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles Approval object

func (*ApprovalReconciler) SetupWithManager

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

SetupWithManager sets ApprovalReconciler to the manager

type ConfigReconciler

type ConfigReconciler struct {
	Log logr.Logger

	GcChan   chan struct{}
	InitChan chan struct{}

	Init bool
	// contains filtered or unexported fields
}

ConfigReconciler reconciles a Approval object

func (*ConfigReconciler) Reconcile

func (r *ConfigReconciler) Reconcile(cm *corev1.ConfigMap) error

Reconcile reconciles ConfigMap

func (*ConfigReconciler) Start

func (r *ConfigReconciler) Start()

Start starts the config map reconciler

type CustomRunReconciler

type CustomRunReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme

	KindHandlerMap  map[string]KindHandler
	HandlerChildren map[string][]runtime.Object
}

CustomRunReconciler reconciles a Run object, which refers to approval/email/...

func (*CustomRunReconciler) AddKindHandler

func (r *CustomRunReconciler) AddKindHandler(kind string, handler KindHandler, children ...runtime.Object)

AddKindHandler registers custom task handlers

func (*CustomRunReconciler) Reconcile

func (r *CustomRunReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles Run object

func (*CustomRunReconciler) SetupWithManager

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

SetupWithManager sets CustomRunReconciler to the manager

type IntegrationConfigReconciler

type IntegrationConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

IntegrationConfigReconciler reconciles a IntegrationConfig object

func (*IntegrationConfigReconciler) Reconcile

Reconcile reconciles IntegrationConfig

func (*IntegrationConfigReconciler) SetupWithManager

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

SetupWithManager sets IntegrationConfigReconciler to the manager

type IntegrationJobReconciler

type IntegrationJobReconciler interface {
	SetupWithManager(mgr ctrl.Manager) error
}

IntegrationJobReconciler is an interface for integrationJobReconciler

type KindHandler

type KindHandler interface {
	Handle(run *tektonv1alpha1.Run) (ctrl.Result, error)
}

KindHandler is an interface of custom task handlers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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