cluster

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClusterConfig

func BuildClusterConfig(
	cluster *fedcorev1a1.FederatedCluster,
	fedClient kubernetes.Interface,
	restConfig *rest.Config,
	fedSystemNamespace string,
) (*rest.Config, error)

func BuildRawClusterConfig

func BuildRawClusterConfig(
	cluster *fedcorev1a1.FederatedCluster,
	fedClient kubernetes.Interface,
	restConfig *rest.Config,
	fedSystemNamespace string,
) (*rest.Config, error)

BuildRawClusterConfig returns a restclient.Config built using key and certificate credentials from the secret referenced in the FederatedCluster.

func GetClusterConditionReasons

func GetClusterConditionReasons(clusterStatus *fedcorev1a1.FederatedClusterStatus) (readyReason, joinedReason, offlineReason string)

func IsClusterJoined

func IsClusterJoined(clusterStatus *fedcorev1a1.FederatedClusterStatus) bool

func IsClusterOffline

func IsClusterOffline(clusterStatus *fedcorev1a1.FederatedClusterStatus) bool

func IsClusterReady

func IsClusterReady(clusterStatus *fedcorev1a1.FederatedClusterStatus) bool

func PopulateAuthDetailsFromSecret

func PopulateAuthDetailsFromSecret(
	clusterConfig *rest.Config,
	insecure bool,
	secret *corev1.Secret,
	useBootstrap bool,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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