pod

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 35 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

This section is empty.

Types

type ReconcilePod

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

ReconcilePod reconciles a AutoRepair object

func NewReconcilePod

func NewReconcilePod(mgr manager.Manager, aliyunClient aliyunClient.OpenAPI, 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) ParsePodNetworksFromAnnotation added in v1.15.0

func (m *ReconcilePod) ParsePodNetworksFromAnnotation(ctx context.Context, zoneID string, anno *controlplane.PodNetworksAnnotation) ([]*v1beta1.Allocation, error)

ParsePodNetworksFromAnnotation parse alloc

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

func (*Wrapper) Start

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

Jump to

Keyboard shortcuts

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