controller

package
v0.0.0-...-7d49ea4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CreateOrUpdate

func CreateOrUpdate(ctx context.Context, c client.Client, obj client.Object) error

func CreateScheduler

func CreateScheduler(instance *stackv1alpha1.ArgoWorkFlow, dep *appsv1.Deployment,
	roleGroup *stackv1alpha1.RoleConfigSpec)

func ReconcileTasks

func ReconcileTasks[T client.Object](tasks *[]ReconcileTask[T], ctx context.Context, instance T,
	r *ArgoWorkFlowReconciler, instanceStatus status.Status, serverName string) error

Types

type ArgoWorkFlowReconciler

type ArgoWorkFlowReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

ArgoWorkFlowReconciler reconciles a ArgoWorkFlow object

func (*ArgoWorkFlowReconciler) Reconcile

func (r *ArgoWorkFlowReconciler) 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 ArgoWorkFlow 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 (*ArgoWorkFlowReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Map

type Map map[string]string

func (*Map) MapMerge

func (m *Map) MapMerge(source map[string]string, replace bool)

type ReconcileTask

type ReconcileTask[T client.Object] struct {
	// contains filtered or unexported fields
}

type ResourceType

type ResourceType string
const (
	Deployment     ResourceType = "Deployment"
	Service        ResourceType = "Service"
	Secret         ResourceType = "Secret"
	ConfigMap      ResourceType = "ConfigMap"
	Pvc            ResourceType = "Pvc"
	ServiceAccount ResourceType = "ServiceAccount"
	RoleBinding                 = "RoleBinding"
)

Jump to

Keyboard shortcuts

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