controllers

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

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeshReconciler

type MeshReconciler struct {
	kube_client.Client
	Reader kube_client.Reader
	Log    logr.Logger

	Scheme          *kube_runtime.Scheme
	Converter       k8s_resources.Converter
	CaManagers      core_ca.Managers
	SystemNamespace string
	ResourceManager manager.ResourceManager
}

MeshReconciler reconciles a Mesh object

func (*MeshReconciler) Reconcile

func (r *MeshReconciler) Reconcile(req kube_ctrl.Request) (kube_ctrl.Result, error)

func (*MeshReconciler) SetupWithManager

func (r *MeshReconciler) SetupWithManager(mgr kube_ctrl.Manager) error

type NamespaceReconciler

type NamespaceReconciler struct {
	kube_client.Client
	Log logr.Logger

	SystemNamespace     string
	CNIEnabled          bool
	ResourceManager     core_manager.ResourceManager
	DefaultMeshTemplate mesh_proto.Mesh
}

NamespaceReconciler reconciles a Namespace object

func (*NamespaceReconciler) Reconcile

Reconcile is in charge for two things:

  • create NetworkAttachmentDefinition if CNI enabled and namespace has label 'kuma.io/sidecar-injection: enabled'
  • create 'default' mesh for cluster

func (*NamespaceReconciler) SetupWithManager

func (r *NamespaceReconciler) SetupWithManager(mgr kube_ctrl.Manager) error

Jump to

Keyboard shortcuts

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