Documentation ¶
Index ¶
- func BuildSDKVirtualNodeSpec(vn *appmesh.VirtualNode, ...) (*appmeshsdk.VirtualNodeSpec, error)
- func ExtractVirtualServiceReferences(vn *appmesh.VirtualNode) []appmesh.VirtualServiceReference
- func IsVirtualNodeActive(vn *appmesh.VirtualNode) bool
- func NewEnqueueRequestsForBackendGroupEvents(client client.Client, log logr.Logger) *enqueueRequestsForBackendGroupEvents
- func NewEnqueueRequestsForMeshEvents(k8sClient client.Client, log logr.Logger) *enqueueRequestsForMeshEvents
- func NewEnqueueRequestsForVirtualServiceEvents(client client.Client, log logr.Logger) *enqueueRequestsForVirtualServiceEvents
- type MembershipDesignator
- type ResourceManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSDKVirtualNodeSpec ¶
func BuildSDKVirtualNodeSpec(vn *appmesh.VirtualNode, vsByKey map[types.NamespacedName]*appmesh.VirtualService) (*appmeshsdk.VirtualNodeSpec, error)
func ExtractVirtualServiceReferences ¶
func ExtractVirtualServiceReferences(vn *appmesh.VirtualNode) []appmesh.VirtualServiceReference
ExtractVirtualServiceReferences extracts all virtualServiceReferences for this VirtualNode
func IsVirtualNodeActive ¶
func IsVirtualNodeActive(vn *appmesh.VirtualNode) bool
IsVirtualNodeActive checks whether given virtualNode is active. virtualNode is active when its VirtualNodeActive condition equals true.
func NewEnqueueRequestsForBackendGroupEvents ¶ added in v1.6.0
Types ¶
type MembershipDesignator ¶
type MembershipDesignator interface { // Designate will choose a VirtualNode for given pod or nil if it don't belong to any VirtualNode. Designate(ctx context.Context, pod *corev1.Pod) (*appmesh.VirtualNode, error) }
MembershipDesignator designates VirtualNode membership for pods.
func NewMembershipDesignator ¶
func NewMembershipDesignator(k8sClient client.Client) MembershipDesignator
NewMembershipDesignator creates new MembershipDesignator.
type ResourceManager ¶
type ResourceManager interface { // Reconcile will create/update AppMesh VirtualNode to match vn.spec, and update vn.status Reconcile(ctx context.Context, vn *appmesh.VirtualNode) error // Cleanup will delete AppMesh VirtualNode created for vn. Cleanup(ctx context.Context, vn *appmesh.VirtualNode) error }
ResourceManager is dedicated to manage AppMesh VirtualNode resources for k8s VirtualNode CRs.
Click to show internal directories.
Click to hide internal directories.