controllers

package
v0.0.0-...-a1c22f6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentComplete

func DeploymentComplete(deployment *apps.Deployment) bool

DeploymentComplete considers a deployment to be complete once all of its desired replicas are updated and available, and no old pods are running.

Types

type AksAppReconciler

type AksAppReconciler struct {
	client.Client
	Logger    *logrus.Entry
	Scheme    *runtime.Scheme
	Namespace string

	UseOwnerReference bool
	// contains filtered or unexported fields
}

AksAppReconciler reconciles an AksApp object

func NewAksAppReconciler

func NewAksAppReconciler(client client.Client, logger *logrus.Entry,
	scheme *runtime.Scheme, namespace string, useOwnerReference bool) *AksAppReconciler

func (*AksAppReconciler) MetricResetRoutine

func (r *AksAppReconciler) MetricResetRoutine()

MetricResetRoutine resets metric

func (*AksAppReconciler) MonitorRoutine

func (r *AksAppReconciler) MonitorRoutine()

MonitorRoutine monitors aksapp

func (*AksAppReconciler) Reconcile

func (r *AksAppReconciler) Reconcile(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 according to the AksApp object referred to by the Request.

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

func (*AksAppReconciler) SetupWithManager

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

SetupWithManager sets up AksApp manager

type ConfigMapReconciler

type ConfigMapReconciler struct {
	client.Client
	Logger    *logrus.Entry
	Scheme    *runtime.Scheme
	Namespace string
}

ConfigMapReconciler reconciles a ConfigMap object

func (*ConfigMapReconciler) Reconcile

func (r *ConfigMapReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles ConfigMaps

func (*ConfigMapReconciler) SetupWithManager

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

SetupWithManager sets up ConfigMap manager

Jump to

Keyboard shortcuts

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