upsert

package
v0.1.89 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 36 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DesiredStateHashAnnotation stores a SHA-256 hash of the desired manifest
	// state. Used to detect changes that DeepDerivative cannot detect, such as
	// removal of spec fields (nodeSelector, tolerations, trailing container args).
	DesiredStateHashAnnotation = "hypershift.openshift.io/desired-state-hash"
)
View Source
const LoopDetectorWarningMessage = "" /* 135-byte string literal not displayed */

LoopDetectorWarningMessage is logged whenever we detect multiple updates of the same object without observering a no-op update.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyProvider added in v0.1.57

type ApplyProvider interface {
	ApplyManifest(ctx context.Context, c crclient.Client, obj crclient.Object) (controllerutil.OperationResult, error)
	ValidateUpdateEvents(threshold int) error
}

func NewApplyProvider added in v0.1.57

func NewApplyProvider(enableUpdateLoopDetector bool) ApplyProvider

type CreateOrUpdateProvider

type CreateOrUpdateProvider interface {
	CreateOrUpdate(ctx context.Context, c crclient.Client, obj crclient.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
}

func New

func New(enableUpdateLoopDetector bool) CreateOrUpdateProvider

Jump to

Keyboard shortcuts

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