Documentation
¶
Index ¶
- type ReconcilePod
- func (m *ReconcilePod) NeedLeaderElection() bool
- func (m *ReconcilePod) ParsePodNetworksFromAnnotation(ctx context.Context, zoneID string, anno *controlplane.PodNetworksAnnotation) ([]*v1beta1.Allocation, error)
- func (m *ReconcilePod) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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
Click to show internal directories.
Click to hide internal directories.