resourceapply

package
v1.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 HashObjects(objs ...interface{}) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL