pod

package
v1.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OKToProcess

func OKToProcess(obj interface{}) bool

OKToProcess filter pod which is ready to process

Types

type ReconcilePod

type ReconcilePod struct {
	// contains filtered or unexported fields
}

ReconcilePod reconciles a AutoRepair object

func NewReconcilePod

func NewReconcilePod(mgr manager.Manager, aliyunClient *aliyun.OpenAPI, swPool *vswitch.SwitchPool) *ReconcilePod

NewReconcilePod watch pod lifecycle events and sync to podENI resource

func (*ReconcilePod) NeedLeaderElection

func (m *ReconcilePod) NeedLeaderElection() bool

NeedLeaderElection need election

func (*ReconcilePod) Reconcile

func (m *ReconcilePod) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile all pod events Pod create -> create PodENI Pod delete -> delete PodENI Fixed IP Pod delete -> mark PodENI status v1beta1.ENIStatusDeleting before delete event is trigger will check pod phase make sure sandbox is terminated

type Wrapper

type Wrapper struct {
	// contains filtered or unexported fields
}

func (*Wrapper) NeedLeaderElection

func (w *Wrapper) NeedLeaderElection() bool

NeedLeaderElection need election

func (*Wrapper) Start

func (w *Wrapper) Start(ctx context.Context) error

Start the controller

Jump to

Keyboard shortcuts

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