pod

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OKToProcess

func OKToProcess(obj interface{}, crdMode bool) 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 register.Interface, swPool *vswitch.SwitchPool, crdMode bool) *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.ENIPhaseDetaching 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