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 register.Interface, 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.ENIPhaseDetaching before delete event is trigger will check pod phase make sure sandbox is terminated
Click to show internal directories.
Click to hide internal directories.