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

controllers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiGroup           = "cicdapi.tmax.io"
	ApprovalKind       = "approvals"
	ApprovalSubApprove = "approve"
	ApprovalSubReject  = "reject"

	ServiceAccountPrefix = "system:serviceaccount:"
)
View Source
const (
	ConfigNameConfig        = "cicd-config"
	ConfigNameEmailTemplate = "email-template"
)
View Source
const (
	Finalizer = "cicd.tmax.io/finalizer"
)

Variables

This section is empty.

Functions

func WaitIngressReady

func WaitIngressReady() error

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)

func (*ApprovalReconciler) SetupWithManager

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

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

func (*ConfigReconciler) Start

func (r *ConfigReconciler) Start()

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)

func (*CustomRunReconciler) Reconcile

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

func (*CustomRunReconciler) SetupWithManager

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

type IntegrationConfigReconciler

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

IntegrationConfigReconciler reconciles a IntegrationConfig object

func (*IntegrationConfigReconciler) Reconcile

func (*IntegrationConfigReconciler) SetupWithManager

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

type IntegrationJobReconciler

type IntegrationJobReconciler struct {
	client.Client
	Log       logr.Logger
	Scheme    *runtime.Scheme
	Scheduler *scheduler.Scheduler
}

IntegrationJobReconciler reconciles a IntegrationJob object

func (*IntegrationJobReconciler) Reconcile

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

func (*IntegrationJobReconciler) SetupWithManager

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

type KindHandler

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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