k8s

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointsReconcile

type EndpointsReconcile struct {
	APIReader client.Reader
	Client    client.Client
	Scheme    *runtime.Scheme
}

EndpointsReconcile watch endpoints to gen servicePort

func (*EndpointsReconcile) Reconcile

func (r *EndpointsReconcile) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile receive Endpoints from workqueue, gen servicePort

func (*EndpointsReconcile) SetupWithManager

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

SetupWithManager add endpoints controller to the manager

type NetworkPolicyReconciler

type NetworkPolicyReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

NetworkPolicyReconciler watch network policy and sync to security policy

func (*NetworkPolicyReconciler) Reconcile

func (r *NetworkPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile receive endpoint from work queue, synchronize the endpoint status

func (*NetworkPolicyReconciler) SetupWithManager

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

SetupWithManager create and add networkPolicy Controller to the manager.

type NodeReconciler

type NodeReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	GwEpNamespace string
}

func (*NodeReconciler) Reconcile

func (r *NodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*NodeReconciler) SetupWithManager

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

type PodReconciler

type PodReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

PodReconciler watch pod and sync to endpoint

func (*PodReconciler) Reconcile

func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile receive endpoint from work queue, synchronize the endpoint status

func (*PodReconciler) SetupWithManager

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

SetupWithManager create and add Endpoint Controller to the manager.

Jump to

Keyboard shortcuts

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