status

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareBackendTLSPolicyRequests

func PrepareBackendTLSPolicyRequests(
	policies map[types.NamespacedName]*graph.BackendTLSPolicy,
	transitionTime metav1.Time,
	gatewayCtlrName string,
) []frameworkStatus.UpdateRequest

PrepareBackendTLSPolicyRequests prepares status UpdateRequests for the given BackendTLSPolicies.

func PrepareGatewayClassRequests

func PrepareGatewayClassRequests(
	gc *graph.GatewayClass,
	ignoredGwClasses map[types.NamespacedName]*v1.GatewayClass,
	transitionTime metav1.Time,
) []frameworkStatus.UpdateRequest

PrepareGatewayClassRequests prepares status UpdateRequests for the given GatewayClasses.

func PrepareGatewayRequests

func PrepareGatewayRequests(
	gateway *graph.Gateway,
	ignoredGateways map[types.NamespacedName]*v1.Gateway,
	transitionTime metav1.Time,
	gwAddresses []v1.GatewayStatusAddress,
	nginxReloadRes NginxReloadResult,
) []frameworkStatus.UpdateRequest

PrepareGatewayRequests prepares status UpdateRequests for the given Gateways.

func PrepareNGFPolicyRequests

func PrepareNGFPolicyRequests(
	policies map[graph.PolicyKey]*graph.Policy,
	transitionTime metav1.Time,
	gatewayCtlrName string,
) []frameworkStatus.UpdateRequest

func PrepareNginxGatewayStatus

func PrepareNginxGatewayStatus(
	nginxGateway *ngfAPI.NginxGateway,
	transitionTime metav1.Time,
	cpUpdateRes ControlPlaneUpdateResult,
) *frameworkStatus.UpdateRequest

PrepareNginxGatewayStatus prepares a status UpdateRequest for the given NginxGateway. If the NginxGateway is nil, it returns nil.

func PrepareRouteRequests

func PrepareRouteRequests(
	l4routes map[graph.L4RouteKey]*graph.L4Route,
	routes map[graph.RouteKey]*graph.L7Route,
	transitionTime metav1.Time,
	nginxReloadRes NginxReloadResult,
	gatewayCtlrName string,
) []frameworkStatus.UpdateRequest

PrepareRouteRequests prepares status UpdateRequests for the given Routes.

Types

type ControlPlaneUpdateResult

type ControlPlaneUpdateResult struct {
	// Error is the error that occurred during the update.
	Error error
}

ControlPlaneUpdateResult describes the result of a control plane update.

type NginxReloadResult

type NginxReloadResult struct {
	// Error is the error that occurred during the reload.
	Error error
}

NginxReloadResult describes the result of an NGINX reload.

Jump to

Keyboard shortcuts

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