patch

package
v1.2.3 Latest Latest
Warning

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

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

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.CreatedUpdatedOrNoop, 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.CreatedUpdatedOrNoop, 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