cluster

package
v2.20.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const IDZero = "00000000-0000-0000-0000-000000000000"

Variables

View Source
var GetInstallIDFunc = GetNamespaceID //nolint:gochecknoglobals // extension point

Functions

func GetNamespaceID added in v2.18.0

func GetNamespaceID(ctx context.Context, client v1.CoreV1Interface, namespace string) (string, error)

Types

type Info

type Info interface {
	// Watch changes of an ClusterInfo and write them on the given stream
	Watch(context.Context, rpc.Manager_WatchClusterInfoServer) error

	// ID of the installed ns
	ID() string

	// clusterID of the cluster
	ClusterID() string

	// SetAdditionalAlsoProxy assigns a slice that will be added to the Routing.AlsoProxySubnets slice
	// when notifications are sent.
	SetAdditionalAlsoProxy(ctx context.Context, subnets []*rpc.IPNet)

	ClusterDomain() string
}

func NewInfo

func NewInfo(ctx context.Context) Info

type PodLister

type PodLister interface {
	// List lists all Pods in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*corev1.Pod, err error)
}

PodLister helps list Pods. All objects returned here must be treated as read-only.

Jump to

Keyboard shortcuts

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