controller

package
v0.0.0-...-e397795 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiPort    = 6000
	FrontPort  = 80
	RsyncPort  = 873
	MetricPort = 2019
)
View Source
const (
	ConfigMapKind string = "ConfigMap"
)
View Source
const ManagerPort = 3000

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnouncementReconciler

type AnnouncementReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

AnnouncementReconciler reconciles a Announcement object

func (*AnnouncementReconciler) Reconcile

func (r *AnnouncementReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*AnnouncementReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Config

type Config struct {
	ManagerImage string
	WorkerImage  string
	PullPolicy   string
	PullSecret   string
	StorageClass string
	AccessMode   string
	FrontMode    string
	FrontImage   string
	RsyncImage   string
	FrontCmd     string
	FrontConfig  string
	RsyncCmd     string
	FrontHost    string
	FrontTLS     string
	FrontClass   string
	FrontAnn     map[string]string
	EnableMetric bool
	Debug        bool
}

type JobReconciler

type JobReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Config *Config
}

JobReconciler reconciles a Job object

func (*JobReconciler) Reconcile

func (r *JobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*JobReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ManagerReconciler

type ManagerReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Config *Config
}

ManagerReconciler reconciles a Manager object

func (*ManagerReconciler) Reconcile

func (r *ManagerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ManagerReconciler) SetupWithManager

func (r *ManagerReconciler) 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