cluster

package
v0.4.9-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequeueAfter = time.Second * 5
	OpsBackupNum = 5
)

Variables

This section is empty.

Functions

func CompareClusterCondition

func CompareClusterCondition(conditionA, conditionB clusterv1alpha1.ClusterCondition) bool

func CompareClusterConditions

func CompareClusterConditions(condAList, condBList []clusterv1alpha1.ClusterCondition) bool

Types

type Controller

type Controller struct {
	client.Client
	ClientSet           kubernetes.Interface
	KubeanClusterSet    clusterClientSet.Interface
	KubeanClusterOpsSet clusterOperationClientSet.Interface
}

func (*Controller) CleanExcessClusterOps added in v0.1.1

func (c *Controller) CleanExcessClusterOps(cluster *clusterv1alpha1.Cluster) (bool, error)

CleanExcessClusterOps clean up excess ClusterOperation.

func (*Controller) Reconcile

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr controllerruntime.Manager) error

func (*Controller) SortClusterOperationsByCreation added in v0.4.2

func (c *Controller) SortClusterOperationsByCreation(operations []clusteroperationv1alpha1.ClusterOperation)

SortClusterOperationsByCreation operations from large to small by creation timestamp.

func (*Controller) Start

func (c *Controller) Start(ctx context.Context) error

func (*Controller) UpdateStatus

func (c *Controller) UpdateStatus(cluster *clusterv1alpha1.Cluster) error

Jump to

Keyboard shortcuts

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