controllers

package
v0.0.0-...-9331f55 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package controllers implements k8s controller functionality for kapp-controller config CRD.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KappControllerConfigReconciler

type KappControllerConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config addonconfig.KappControllerConfigControllerConfig
}

KappControllerConfigReconciler reconciles a KappControllerConfig object

func (*KappControllerConfigReconciler) ClusterToKappControllerConfig

func (r *KappControllerConfigReconciler) ClusterToKappControllerConfig(o client.Object) []ctrl.Request

ClusterToKappControllerConfig returns a list of Requests with KappControllerConfig ObjectKey

func (*KappControllerConfigReconciler) 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.

func (*KappControllerConfigReconciler) ReconcileKappControllerConfig

func (r *KappControllerConfigReconciler) ReconcileKappControllerConfig(
	ctx context.Context,
	kappControllerConfig *runv1alpha3.KappControllerConfig,
	cluster *clusterapiv1beta1.Cluster,
	log logr.Logger) (_ ctrl.Result, retErr error)

ReconcileKappControllerConfig reconciles KappControllerConfig CR

func (*KappControllerConfigReconciler) ReconcileKappControllerConfigDataValue

func (r *KappControllerConfigReconciler) ReconcileKappControllerConfigDataValue(
	ctx context.Context,
	kappControllerConfig *runv1alpha3.KappControllerConfig,
	cluster *clusterapiv1beta1.Cluster,
	log logr.Logger) (retErr error)

ReconcileKappControllerConfigDataValue reconciles KappControllerConfig data values secret

func (*KappControllerConfigReconciler) ReconcileKappControllerConfigNormal

func (r *KappControllerConfigReconciler) ReconcileKappControllerConfigNormal(
	ctx context.Context,
	kappControllerConfig *runv1alpha3.KappControllerConfig,
	cluster *clusterapiv1beta1.Cluster,
	log logr.Logger) (retErr error)

ReconcileKappControllerConfigNormal reconciles KappControllerConfig CR

func (*KappControllerConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NodeSelector

type NodeSelector struct {
	NodeRoleControlPlane string `yaml:"node-role.kubernetes.io/control-plane"`
}

NodeSelector contains the nodeSelector information

Jump to

Keyboard shortcuts

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