Documentation ¶
Index ¶
- Constants
- Variables
- func Add(mgr manager.Manager) error
- func GetPubForPod(c client.Client, pod *corev1.Pod) (*policyv1alpha1.PodUnavailableBudget, error)
- type ReconcilePodUnavailableBudget
- type SetEnqueueRequestForPUB
- func (e *SetEnqueueRequestForPUB) Create(ctx context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (e *SetEnqueueRequestForPUB) Delete(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (e *SetEnqueueRequestForPUB) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (e *SetEnqueueRequestForPUB) Update(ctx context.Context, evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Constants ¶
View Source
const ( DeletionTimeout = 20 * time.Second UpdatedDelayCheckTime = 10 * time.Second )
Variables ¶
View Source
var ConflictRetry = wait.Backoff{ Steps: 4, Duration: 500 * time.Millisecond, Factor: 1.0, Jitter: 0.1, }
Functions ¶
func Add ¶
Add creates a new PodUnavailableBudget Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.
func GetPubForPod ¶ added in v1.2.0
func GetPubForPod(c client.Client, pod *corev1.Pod) (*policyv1alpha1.PodUnavailableBudget, error)
Types ¶
type ReconcilePodUnavailableBudget ¶
type ReconcilePodUnavailableBudget struct { // contains filtered or unexported fields }
ReconcilePodUnavailableBudget reconciles a PodUnavailableBudget object
type SetEnqueueRequestForPUB ¶ added in v1.0.0
type SetEnqueueRequestForPUB struct {
// contains filtered or unexported fields
}
func (*SetEnqueueRequestForPUB) Create ¶ added in v1.0.0
func (e *SetEnqueueRequestForPUB) Create(ctx context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface)
Create implements EventHandler
func (*SetEnqueueRequestForPUB) Delete ¶ added in v1.0.0
func (e *SetEnqueueRequestForPUB) Delete(ctx context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete implements EventHandler
func (*SetEnqueueRequestForPUB) Generic ¶ added in v1.0.0
func (e *SetEnqueueRequestForPUB) Generic(ctx context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface)
Generic implements EventHandler
func (*SetEnqueueRequestForPUB) Update ¶ added in v1.0.0
func (e *SetEnqueueRequestForPUB) Update(ctx context.Context, evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Update implements EventHandler
Click to show internal directories.
Click to hide internal directories.