conflict

package
v1.19.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const UnknownManager = "UNKNOWN"

UnknownManager is used as a placeholder when the new or old manager is unknown.

Variables

This section is empty.

Functions

func Record added in v1.19.0

func Record(ctx context.Context, handler Handler, err status.ManagementConflictError, commit string)

Record a management conflict error, including log and metric.

Types

type Handler

type Handler interface {
	AddConflictError(core.ID, status.ManagementConflictError)
	RemoveConflictError(core.ID)
	ClearConflictErrorsWithKind(gk schema.GroupKind)

	// ConflictErrors returns the management conflict errors (KNV1060) the remediator encounters.
	ConflictErrors() []status.ManagementConflictError
	// HasConflictErrors returns true when there are conflict errors
	HasConflictErrors() bool
	// HasConflictError returns true when there is a conflict for the specified object ID.
	HasConflictError(core.ID) bool
}

Handler is the generic interface of the conflict handler.

func NewHandler

func NewHandler() Handler

NewHandler instantiates a conflict handler

Jump to

Keyboard shortcuts

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