amesh

package
v0.0.0-...-45ed318 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmeshPluginConfigReconciler

type AmeshPluginConfigReconciler struct {
	client.Client

	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

AmeshPluginConfigReconciler reconciles a AmeshPluginConfig object

func NewAmeshPluginConfigController

func NewAmeshPluginConfigController(cli client.Client, scheme *runtime.Scheme,
	clientset clientset.Interface, kubeClient kubernetes.Interface,
	podInformer v1informer.PodInformer,
	ameshPluginConfigInformer ameshv1alpha1informer.AmeshPluginConfigInformer) *AmeshPluginConfigReconciler

func (*AmeshPluginConfigReconciler) AddPodChangeListener

func (r *AmeshPluginConfigReconciler) AddPodChangeListener(receiver types.PodChangeReceiver)

func (*AmeshPluginConfigReconciler) GetPodPluginConfigs

func (r *AmeshPluginConfigReconciler) GetPodPluginConfigs(key string) ([]*types.PodPluginConfig, error)

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

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

func (*AmeshPluginConfigReconciler) SendPluginsConfigs

func (r *AmeshPluginConfigReconciler) SendPluginsConfigs(ns string, names sets.String, plugins []ameshv1alpha1.AmeshPluginConfigPlugin)

SendPluginsConfigs triggers a re-sync process of the pods. Currently, we don't count the plugins passed, actual configs are retrieved from GetPodPluginConfigs

func (*AmeshPluginConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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