Documentation ¶
Index ¶
- func CreateIfNotExists(ctx context.Context, c client.Client, obj client.Object, ...) (controllerutil.OperationResult, error)
- func PatchIfExists(ctx context.Context, c client.Client, obj client.Object, ...) (controllerutil.OperationResult, error)
- func UpdateIfExists(ctx context.Context, c client.Client, obj client.Object, ...) (controllerutil.OperationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExists ¶
func CreateIfNotExists(ctx context.Context, c client.Client, obj client.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
CreateIfNotExists creates the given object in the Kubernetes cluster.
func PatchIfExists ¶
func PatchIfExists(ctx context.Context, c client.Client, obj client.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
PatchIfExists patches the given object in the Kubernetes cluster if exists. The object's desired state must be reconciled with the before state inside the passed in callback MutateFn.
func UpdateIfExists ¶
func UpdateIfExists(ctx context.Context, c client.Client, obj client.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
UpdateIfExists updates the given object in the Kubernetes cluster if exists. The object's desired state must be reconciled with the existing state inside the passed in callback MutateFn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.