podeni

package
v1.3.0-policy Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReconcilePodENI

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

ReconcilePodENI reconciles a AutoRepair object

func NewReconcilePod

func NewReconcilePod(mgr manager.Manager, aliyunClient register.Interface) *ReconcilePodENI

NewReconcilePod watch pod lifecycle events and sync to podENI resource

func (*ReconcilePodENI) NeedLeaderElection

func (m *ReconcilePodENI) NeedLeaderElection() bool

NeedLeaderElection need election

func (*ReconcilePodENI) Reconcile

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

Reconcile all podENI resource podENI create -> do attach to node and update status podENI delete -> detach podENI and delete

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