clusterlifecycle

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClusterMonitorGracePeriod = 9 * time.Minute

	// ClusterNotReadyThreshold indicate the threshold for cluster not ready period
	ClusterNotReadyThreshold = 3
)

Variables

This section is empty.

Functions

func GetClusterCondition

func GetClusterCondition(status *clusterapi.ManagedClusterStatus, conditionType string) *metav1.Condition

GetClusterCondition extracts the provided condition from the given status and returns that.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is a controller that manages cluster's lifecycle

func NewController

func NewController(clusternetClient clusternetclientset.Interface,
	clusterInformer clusterinformers.ManagedClusterInformer, recorder record.EventRecorder) (*Controller, error)

func (*Controller) Run

func (c *Controller) Run(workers int, ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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