controllers

package
v0.0.0-...-a2ec6d6 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMapToString

func ConvertMapToString(m map[string]string) string

func GenerateLabelsForApp

func GenerateLabelsForApp(name string) map[string]string

func GetScheduleActionName

func GetScheduleActionName(scheduleName string, actionName string) string

func ReplicasForLabels

func ReplicasForLabels(scheduleAction podv1alpha1.ScheduleAction) string

Types

type ClusterScheduleReconciler

type ClusterScheduleReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	JobImage       string
	ServiceAccount string
	Namespace      string
	Templates      *template.Template
}

ClusterScheduleReconciler reconciles a ClusterSchedule object

func (*ClusterScheduleReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ClusterSchedule object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*ClusterScheduleReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ScheduleReconciler

type ScheduleReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	JobImage        string
	ClusterRoleName string
	Templates       *template.Template
}

ScheduleReconciler reconciles a Schedule object

func (*ScheduleReconciler) Reconcile

func (r *ScheduleReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the Schedule object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*ScheduleReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ScheduleResources

type ScheduleResources struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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