controllers

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartManager

func StartManager(cfg ControllerConfig) error

Types

type BuildJobConfig

type BuildJobConfig struct {
	Image                      string
	ImagePullSecret            string
	CustomCAConfigMap          string
	PreparerPluginPath         string
	Labels                     map[string]string
	Annotations                map[string]string
	NodeSelector               map[string]string
	TolerationKey              string
	GrantFullPrivilege         bool
	EnableLayerCaching         bool
	PodSecurityPolicy          string
	SecurityContextConstraints string
	BrokerOpts                 *message.Options
	Volumes                    []corev1.Volume
	VolumeMounts               []corev1.VolumeMount
	EnvVar                     []corev1.EnvVar
	EnableIstioSupport         bool

	DynamicVolumes      []corev1.Volume
	DynamicVolumeMounts []corev1.VolumeMount
}

type ContainerImageBuildReconciler

type ContainerImageBuildReconciler struct {
	client.Client
	*kubernetes.Clientset
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder

	NewRelic *newrelic.Application

	JobConfig *BuildJobConfig
	// contains filtered or unexported fields
}

ContainerImageBuildReconciler reconciles a ContainerImageBuild object

func (*ContainerImageBuildReconciler) Reconcile

func (*ContainerImageBuildReconciler) RunGC

func (r *ContainerImageBuildReconciler) RunGC(retentionCount int)

RunGC will delete ContainerImageBuild resources that are in a "completed" or "failed" state. The oldest resources will be deleted first and the retentionCount will preserve N of resources for inspection.

func (*ContainerImageBuildReconciler) SetupWithManager

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

type ControllerConfig

type ControllerConfig struct {
	Debug                bool
	Namespace            string
	MetricsAddr          string
	EnableLeaderElection bool
	GCMaxRetentionCount  int
	GCInterval           time.Duration

	JobConfig *BuildJobConfig
}

Jump to

Keyboard shortcuts

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