Documentation
¶
Index ¶
- Constants
- func GetGatewayClass(ctx context.Context, client kube_client.Client, name gatewayapi.ObjectName) (*gatewayapi.GatewayClass, error)
- func OwnedPolicyName(owner kube_types.NamespacedName) string
- func ParentRefMatchesGateway(routeNamespace string, parentRef gatewayapi.ParentReference, ...) bool
- func ReconcileLabelledObject(ctx context.Context, logger logr.Logger, registry k8s_registry.TypeRegistry, ...) error
Constants ¶
View Source
const ( ControllerName = gatewayapi.GatewayController("gateways.kuma.io/controller") HTTPRouteKind = gatewayapi.Kind("HTTPRoute") )
Variables ¶
This section is empty.
Functions ¶
func GetGatewayClass ¶
func GetGatewayClass(ctx context.Context, client kube_client.Client, name gatewayapi.ObjectName) (*gatewayapi.GatewayClass, error)
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.
Click to show internal directories.
Click to hide internal directories.