patch

package
v1.3.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 12 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

This section is empty.

Variables

This section is empty.

Functions

func ApplyGatewayStatusPatchIfNotEmpty

func ApplyGatewayStatusPatchIfNotEmpty(ctx context.Context,
	cl client.Client,
	logger logr.Logger,
	existingGateway *gatewayv1.Gateway,
	oldExistingGateway *gatewayv1.Gateway,
) (res op.Result, err error)

ApplyGatewayStatusPatchIfNotEmpty patches the provided gateways if the resulting patch between the provided existingGateway and oldExistingGateway is non empty.

func ApplyPatchIfNonEmpty

func ApplyPatchIfNonEmpty[
	OwnerT *operatorv1beta1.DataPlane | *operatorv1beta1.ControlPlane,
	ResourceT interface {
		*appsv1.Deployment | *autoscalingv2.HorizontalPodAutoscaler | *certmanagerv1.Certificate
		client.Object
	},
](
	ctx context.Context,
	cl client.Client,
	logger logr.Logger,
	existingResource ResourceT,
	oldExistingResource ResourceT,
	owner OwnerT,
	updated bool,
) (res op.Result, deploy ResourceT, err error)

ApplyPatchIfNonEmpty patches the provided resource if the resulting patch between the provided existingResource and the provided oldExistingResource is non empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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