Documentation ¶
Index ¶
- type AmeshPluginConfigReconciler
- func (r *AmeshPluginConfigReconciler) AddPodChangeListener(receiver types.PodChangeReceiver)
- func (r *AmeshPluginConfigReconciler) GetPodPluginConfigs(key string) ([]*types.PodPluginConfig, error)
- func (r *AmeshPluginConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *AmeshPluginConfigReconciler) SendPluginsConfigs(ns string, names sets.String, plugins []ameshv1alpha1.AmeshPluginConfigPlugin)
- func (r *AmeshPluginConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
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 ¶
func (r *AmeshPluginConfigReconciler) 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.
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.
Click to show internal directories.
Click to hide internal directories.