controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillDefaultValue

func FillDefaultValue(origin *appv1.Agent) *appv1.Agent

Types

type AgentReconciler

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

AgentReconciler reconciles a Agent object

func (*AgentReconciler) CreateResource

func (r *AgentReconciler) CreateResource(ctx context.Context, agent *appv1.Agent) (err error)

func (*AgentReconciler) Reconcile

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

func (*AgentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*AgentReconciler) UpdateResource

func (r *AgentReconciler) UpdateResource(ctx context.Context, oldDeploy *appsv1.StatefulSet, agent *appv1.Agent) (err error)

type AgentResources

type AgentResources struct {
	StatefulSet    *appsv1.StatefulSet
	ServiceAccount *corev1.ServiceAccount
	RoleBinding    *rbacv1.RoleBinding
	Role           *rbacv1.Role
}

func ConvertAgent

func ConvertAgent(app *appv1.Agent, setOwnerRef SetOwnerRefFunc) *AgentResources

type SetOwnerRefFunc

type SetOwnerRefFunc func(agent *appv1.Agent, controlled metav1.Object)

Jump to

Keyboard shortcuts

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