client

package
v0.10.0-devel Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch

func CreatePatch(before, after client.Object) (client.Patch, error)

func Patch

func Patch(ctx context.Context, c client.Client, obj client.Object, strict bool, update func() (bool, error)) error

Patch applies the merge patch of client.Object. If strict is true, the resourceVersion will be part of the patch, make this call fail if client.Object was changed.

func PatchStatus added in v0.8.0

func PatchStatus(ctx context.Context, c client.Client, obj client.Object, update func() (bool, error)) error

PatchStatus applies the merge patch of client.Object status. The resourceVersion will be part of the patch, make this call fail if client.Object was changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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