Documentation ¶
Index ¶
- Constants
- func CompareClusterCondition(conditionA, conditionB clusterv1alpha1.ClusterCondition) bool
- func CompareClusterConditions(condAList, condBList []clusterv1alpha1.ClusterCondition) bool
- type ConfigProperty
- type Controller
- func (c *Controller) CleanExcessClusterOps(cluster *clusterv1alpha1.Cluster, OpsBackupNum int) (bool, error)
- func (c *Controller) FetchKubeanConfigProperty() *ConfigProperty
- func (c *Controller) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
- func (c *Controller) SetupWithManager(mgr controllerruntime.Manager) error
- func (c *Controller) SortClusterOperationsByCreation(operations []clusteroperationv1alpha1.ClusterOperation)
- func (c *Controller) Start(ctx context.Context) error
- func (c *Controller) UpdateOwnReferenceToCluster(cluster *clusterv1alpha1.Cluster) error
- func (c *Controller) UpdateStatus(cluster *clusterv1alpha1.Cluster) error
Constants ¶
View Source
const ( RequeueAfter = time.Second * 15 KubeanConfigMapName = "kubean-config" DefaultClusterOperationsBackEndLimit = 30 MaxClusterOperationsBackEndLimit = 200 )
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 ConfigProperty ¶ added in v0.8.0
type ConfigProperty struct {
ClusterOperationsBackEndLimit string `json:"CLUSTER_OPERATIONS_BACKEND_LIMIT"`
}
func (*ConfigProperty) GetClusterOperationsBackEndLimit ¶ added in v0.8.0
func (config *ConfigProperty) GetClusterOperationsBackEndLimit() int
type Controller ¶
type Controller struct { Client 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, OpsBackupNum int) (bool, error)
CleanExcessClusterOps clean up excess ClusterOperation.
func (*Controller) FetchKubeanConfigProperty ¶ added in v0.8.0
func (c *Controller) FetchKubeanConfigProperty() *ConfigProperty
func (*Controller) Reconcile ¶
func (c *Controller) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
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) UpdateOwnReferenceToCluster ¶ added in v0.8.2
func (c *Controller) UpdateOwnReferenceToCluster(cluster *clusterv1alpha1.Cluster) error
func (*Controller) UpdateStatus ¶
func (c *Controller) UpdateStatus(cluster *clusterv1alpha1.Cluster) error
Click to show internal directories.
Click to hide internal directories.