Documentation ¶
Index ¶
- func IgnoreAlreadyExists(err error) error
- type OperationResult
- func CreateOrPatch(ctx context.Context, c client.Client, obj client.Object, mutate func() error) (OperationResult, error)
- func Patch(ctx context.Context, c client.Client, obj client.Object, mutate func() error) (OperationResult, error)
- func PatchStatus(ctx context.Context, c client.Client, obj client.Object, mutate func() error) (OperationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreAlreadyExists ¶
IgnoreAlreadyExists returns nil on IsAlreadyExists errors.
Types ¶
type OperationResult ¶
type OperationResult string
OperationResult is the action result of a CreateOrUpdate call
const ( // OperationResultNone means that the resource has not been changed OperationResultNone OperationResult = "unchanged" // OperationResultCreated means that a new resource is created OperationResultCreated OperationResult = "created" // OperationResultUpdated means that an existing resource is updated OperationResultUpdated OperationResult = "updated" )
func CreateOrPatch ¶
Click to show internal directories.
Click to hide internal directories.