clustersource

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterSource

type ClusterSource interface {
	cluster.Cluster

	// SourceFor returns a controller.Watches source for the given object.
	SourceFor(client.Object) source.SyncingSource
}

ClusterSource is a cluster with added methods to be used as a source for controller Watches.

func FromKubeConfig

func FromKubeConfig(kubeconfig []byte, scheme *runtime.Scheme) (ClusterSource, error)

FromKubeConfig creates a ClusterSource from a kubeconfig.

func FromURLAndBearerToken

func FromURLAndBearerToken(url, token string, scheme *runtime.Scheme) (ClusterSource, error)

FromURLAndBearerToken creates a ClusterSource from a url and token. If more complex configuration is needed, use FromKubeConfig.

Jump to

Keyboard shortcuts

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