# Functions

CallWithRetry attempts to call a function with retries based on a custom rate limiter.
CheckAndFinallyCall checks a condition at a specified interval until it's true or a timeout occurs.
ConvertBizStatusToContainerStatus converts tunnel container status to Kubernetes container status, if not the status for the container, then create a empty state container status.
ConvertByteNumToResourceQuantity converts a byte number to a resource quantity.
DefaultRateLimiter calculates the duration for retry based on the number of retries.
ExtractNodeIDFromNodeName extracts the node ID from a node name.
No description provided by the author
FormatNodeName constructs a node name based on node ID and environment.
GetBizUniqueKey returns a unique key for the container.
GetContainerKey constructs a container key from a pod key and container name.
GetContainerNameFromContainerKey extracts the container name from a container key.
GetEnv retrieves an environment variable or returns a default value if not set.
GetPodKey constructs a pod key from a pod object.
GetPodKeyFromContainerKey extracts the pod key from a container key.
MergeNodeFromProvider constructs a virtual node based on the latest node status data.
No description provided by the author
PodsEqual checks if two pods are equal based on specific fields that can be modified after startup.
SplitMetaNamespaceKey splits a key into namespace and name.
TimedTaskWithInterval runs a task at a specified interval until the context is cancelled.