clusterdeployment

package
v1.0.0-2021-10-25-18-5... Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWithManager

func SetupWithManager(mgr manager.Manager) error

Types

type Reconciler

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

This controller sync the clusterdeployment's ClusterSet Label In ACM, clusterdeployment should be created in two ways

  1. Directlly create a managedcluster, it will also create a clusterdeployment ref to this managedcluster. So the clusterdeployment's clusterset label should be synced from this managedcluster.
  2. Claim a cluster from clusterpool, all the clusters claimed from this pool should be in the same clusterset. And the clusterdeployment's clusterset should be same as clusterpool. So we need to sync the clusterdeployment clusterset from clusterpool

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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