Documentation ¶
Index ¶
- func ApplyPodDisruptionBudget(ctx context.Context, recorder record.EventRecorder, client client.Client, ...) error
- func HashObjects(objs ...interface{}) (string, error)
- func MustHashObjects(objs ...interface{}) string
- func ReportCreateEvent(recorder record.EventRecorder, obj runtime.Object, operationErr error)
- func ReportDeleteEvent(recorder record.EventRecorder, obj runtime.Object, operationErr error)
- func ReportUpdateEvent(recorder record.EventRecorder, obj runtime.Object, operationErr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPodDisruptionBudget ¶
func ApplyPodDisruptionBudget(ctx context.Context, recorder record.EventRecorder, client client.Client, pdb *v1beta1.PodDisruptionBudget) error
ApplyPodDisruptionBudget creates or updates PDB. If desired object is equal (based on calculated hash) to existing one update is not called.
func HashObjects ¶
func MustHashObjects ¶
func MustHashObjects(objs ...interface{}) string
func ReportCreateEvent ¶
func ReportCreateEvent(recorder record.EventRecorder, obj runtime.Object, operationErr error)
func ReportDeleteEvent ¶
func ReportDeleteEvent(recorder record.EventRecorder, obj runtime.Object, operationErr error)
func ReportUpdateEvent ¶
func ReportUpdateEvent(recorder record.EventRecorder, obj runtime.Object, operationErr error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.