status

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptedCondition

func AcceptedCondition(policy client.Object) metav1.Condition

AcceptedCondition returns the accepted condition with the given message for the policy

func ConditionPointer

func ConditionPointer(condition metav1.Condition) *metav1.Condition

ConditionPointer returns the pointer of the given condition

func ConflictCondition

func ConflictCondition(policy client.Object, message string) metav1.Condition

ConflictCondition returns the conflict condition with the given message for the policy

func InvalidCondition

func InvalidCondition(policy client.Object, message string) metav1.Condition

InvalidCondition returns the invalid condition with the given message for the policy

func NoAccessCondition added in v1.3.0

func NoAccessCondition(policy client.Object, message string) metav1.Condition

NoAccessCondition returns the no access condition with the given message for the policy

func NotFoundCondition

func NotFoundCondition(policy client.Object, message string) metav1.Condition

NotFoundCondition returns the not found condition with the given message for the policy

Types

type FindConflictFunc

type FindConflictFunc func(policy client.Object, allPolicies []client.Object, port int32) *types.NamespacedName

FindConflictFunc is a function for finding conflicted policy for a service port

type FindConflictPortFunc

type FindConflictPortFunc func(gateway *gwv1.Gateway, policy client.Object, allPortLevelPolicies []client.Object) *types.NamespacedName

FindConflictPortFunc finds the conflicted port level policy

type FindConflictedGRPCRouteBasedPolicyFunc

type FindConflictedGRPCRouteBasedPolicyFunc func(route *gwv1.GRPCRoute, policy client.Object, allRouteBasedPolicies []client.Object) *types.NamespacedName

FindConflictedGRPCRouteBasedPolicyFunc finds the conflicted GRPCRoute based policy

type FindConflictedHTTPRouteBasedPolicyFunc

type FindConflictedHTTPRouteBasedPolicyFunc func(route *gwv1.HTTPRoute, policy client.Object, allRouteBasedPolicies []client.Object) *types.NamespacedName

FindConflictedHTTPRouteBasedPolicyFunc finds the conflicted HTTPRoute based policy

type FindConflictedHostnamesBasedPolicyFunc

type FindConflictedHostnamesBasedPolicyFunc func(route *gwtypes.RouteContext, policy client.Object, allHostnamesBasedPolicies []client.Object) *types.NamespacedName

FindConflictedHostnamesBasedPolicyFunc finds the conflicted hostnames based policy

type GetAttachedPoliciesFunc

type GetAttachedPoliciesFunc func(policy client.Object, svc client.Object) ([]client.Object, *metav1.Condition)

GetAttachedPoliciesFunc is a function for getting attached policies for a service

type GetObjectByGroupKindFunc

type GetObjectByGroupKindFunc func(group gwv1.Group, kind gwv1.Kind) client.Object

GetObjectByGroupKindFunc returns the object by group and kind

type GetPoliciesFunc

type GetPoliciesFunc func(policy client.Object, target client.Object) (map[gwpkg.PolicyMatchType][]client.Object, *metav1.Condition)

GetPoliciesFunc returns the policies, and returns condition if there is any error

type PolicyStatusProcessor

type PolicyStatusProcessor struct {
	client.Client
	Informer                           *informers.InformerCollection
	GetPolicies                        GetPoliciesFunc
	FindConflictPort                   FindConflictPortFunc
	FindConflictedHostnamesBasedPolicy FindConflictedHostnamesBasedPolicyFunc
	FindConflictedHTTPRouteBasedPolicy FindConflictedHTTPRouteBasedPolicyFunc
	FindConflictedGRPCRouteBasedPolicy FindConflictedGRPCRouteBasedPolicyFunc
	GroupKindObjectMapping             map[string]map[string]client.Object
}

PolicyStatusProcessor is a processor for processing port level policy status

func (*PolicyStatusProcessor) Process

Process processes the policy status of port, hostnames and route level

type RouteInfo

type RouteInfo struct {
	Meta       metav1.Object
	Parents    []gwv1.RouteParentStatus
	GVK        schema.GroupVersionKind
	Generation int64
	Hostnames  []gwv1.Hostname
}

RouteInfo is a struct for storing route information

type ServicePolicyStatusProcessor

type ServicePolicyStatusProcessor struct {
	client.Client
	Informer               *informers.InformerCollection
	GetAttachedPolicies    GetAttachedPoliciesFunc
	FindConflict           FindConflictFunc
	GroupKindObjectMapping map[string]map[string]client.Object
}

ServicePolicyStatusProcessor is an interface for processing service level policy status

func (*ServicePolicyStatusProcessor) Process

Process processes the service level policy status

Jump to

Keyboard shortcuts

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