common

package
v2.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = gatewayapi.GatewayController("gateways.kuma.io/controller")
	HTTPRouteKind  = gatewayapi.Kind("HTTPRoute")
)

Variables

This section is empty.

Functions

func OwnedPolicyName

func OwnedPolicyName(owner kube_types.NamespacedName) string

func ParentRefMatchesGateway

func ParentRefMatchesGateway(routeNamespace string, parentRef gatewayapi.ParentReference, gateway *gatewayapi.Gateway) bool

ParentRefMatchesGateway checks whether a ref points to the given Gateway.

func ReconcileLabelledObject

func ReconcileLabelledObject(
	ctx context.Context,
	logger logr.Logger,
	registry k8s_registry.TypeRegistry,
	client kube_client.Client,
	owner kube_types.NamespacedName,
	ownerMesh string,
	ownedType k8s_registry.ResourceType,
	ownedNamespace string,
	owned map[string]core_model.ResourceSpec,
) error

ReconcileLabelledObject manages a set of owned kuma objects based on labels with the owner key. ownerMesh can be empty if the ownedSpec is nil. ownedType tells us what type the owned object is. ownedSpec should be set to nil if the object shouldn't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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