Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// ServiceClusterLabel identifies to which vcluster the node service belongs if there are multiple in one namespace
ServiceClusterLabel = "vcluster.loft.sh/belongs-to"
// ServiceNodeLabel specifies which node this service represents
ServiceNodeLabel = "vcluster.loft.sh/node"
// KubeletPort is the port we pretend the kubelet is running under
KubeletPort = int32(10250)
// KubeletTargetPort is the port vcluster will run under
KubeletTargetPort = 8443
)
Functions ¶
This section is empty.
Types ¶
type NodeServiceProvider ¶
type NodeServiceProvider interface {
sync.Locker
// Start starts the node service garbage collector
Start(ctx context.Context)
// GetNodeIP returns a new fake node ip
GetNodeIP(ctx context.Context, name types.NamespacedName) (string, error)
}
func NewNodeServiceProvider ¶
func NewNodeServiceProvider(serviceName, currentNamespace string, currentNamespaceClient client.Client, virtualClient client.Client, uncachedVirtualClient client.Client) NodeServiceProvider
Click to show internal directories.
Click to hide internal directories.