common

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 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 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,
	registry k8s_registry.TypeRegistry,
	client kube_client.Client,
	owner kube_types.NamespacedName,
	ownerMesh string,
	ownedType k8s_registry.ResourceType,
	ownedSpec proto.Message,
) 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.

func ServiceTagForGateway

func ServiceTagForGateway(name kube_types.NamespacedName) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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