controllers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package controllers implements kubemark provider controllers.

Index

Constants

View Source
const (
	// DefaultCPUResource is the default cpu capacity when none is specified (k8s 1.22+).
	DefaultCPUResource = "1"
	// DefaultMemResource is the default memory capacity when none is specified (k8s 1.22+).
	DefaultMemResource = "4G"
)
View Source
const (

	// MachineControllerName defines the user-agent name used when creating rest clients.
	MachineControllerName = "kubemarkmachine-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubemarkCluster

type KubemarkCluster interface {
	GenerateKubemarkClusterClient(kubemarkClusterSecretRef *corev1.ObjectReference, ownerNamespace string, context gocontext.Context) (client.Client, string, error)
}

KubemarkCluster defines a cluster hosting kubemark pods.

func NewKubemarkCluster

func NewKubemarkCluster(client client.Client) KubemarkCluster

NewKubemarkCluster creates new KubemarkCluster instance.

type KubemarkMachineReconciler

type KubemarkMachineReconciler struct {
	client.Client
	KubemarkCluster KubemarkCluster
	Scheme          *runtime.Scheme
	KubemarkImage   string

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

KubemarkMachineReconciler reconciles a KubemarkMachine objects.

func (*KubemarkMachineReconciler) Reconcile

func (*KubemarkMachineReconciler) SetupWithManager

func (r *KubemarkMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type KubemarkMachineTemplateReconciler

type KubemarkMachineTemplateReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

KubemarkMachineTemplateReconciler reconciles a KubemarkMachineTemplate objects.

func (*KubemarkMachineTemplateReconciler) Reconcile

func (*KubemarkMachineTemplateReconciler) SetupWithManager

func (r *KubemarkMachineTemplateReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

Jump to

Keyboard shortcuts

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