virtualnode

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func NewEnqueueRequestsForBackendGroupEvents(client client.Client, log logr.Logger) *enqueueRequestsForBackendGroupEvents

func NewEnqueueRequestsForMeshEvents

func NewEnqueueRequestsForMeshEvents(k8sClient client.Client, log logr.Logger) *enqueueRequestsForMeshEvents

func NewEnqueueRequestsForVirtualServiceEvents added in v1.6.0

func NewEnqueueRequestsForVirtualServiceEvents(client client.Client, log logr.Logger) *enqueueRequestsForVirtualServiceEvents

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.

func NewDefaultResourceManager

func NewDefaultResourceManager(
	k8sClient client.Client,
	appMeshSDK services.AppMesh,
	referencesResolver references.Resolver,
	accountID string,
	log logr.Logger,
	enableBackendGroups bool) ResourceManager

Jump to

Keyboard shortcuts

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