Documentation

Index

Constants

View Source
const (
	ReferenceKindVirtualNode = "VirtualNode"
)

Variables

This section is empty.

Functions

func BuildSDKVirtualRouterSpec

func BuildSDKVirtualRouterSpec(vr *appmesh.VirtualRouter) (*appmeshsdk.VirtualRouterSpec, error)

func ExtractVirtualNodeReferences

func ExtractVirtualNodeReferences(vr *appmesh.VirtualRouter) []appmesh.VirtualNodeReference

    ExtractVirtualNodeReferences extracts all virtualNodeReferences for this virtualRouter

    func IsVirtualRouterActive

    func IsVirtualRouterActive(vr *appmesh.VirtualRouter) bool

      IsVirtualRouterActive checks whether given virtualRouter is active. virtualRouter is active when its VirtualRouterActive condition equals true.

      func NewEnqueueRequestsForMeshEvents

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

      func NewEnqueueRequestsForVirtualNodeEvents

      func NewEnqueueRequestsForVirtualNodeEvents(referencesIndexer references.ObjectReferenceIndexer, log logr.Logger) *enqueueRequestsForVirtualNodeEvents

      func VirtualNodeReferenceIndexFunc

      func VirtualNodeReferenceIndexFunc(obj runtime.Object) []types.NamespacedName

      Types

      type ResourceManager

      type ResourceManager interface {
      	// Reconcile will create/update AppMesh VirtualRouter to match vr.spec, and update vr.status
      	Reconcile(ctx context.Context, vr *appmesh.VirtualRouter) error
      
      	// Cleanup will delete AppMesh VirtualRouter created for vr.
      	Cleanup(ctx context.Context, vr *appmesh.VirtualRouter) error
      }

        ResourceManager is dedicated to manage AppMesh VirtualRouter resources for k8s VirtualRouter CRs.

        func NewDefaultResourceManager

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