manifestworkreplicasetcontroller

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ManifestWorkReplicaSetControllerNameLabelKey is the label key on manifestwork to ref to the ManifestWorkReplicaSet
	// that owns this manifestwork
	// TODO move this to the api repo
	ManifestWorkReplicaSetControllerNameLabelKey = "work.open-cluster-management.io/manifestworkreplicaset"

	// ManifestWorkReplicaSetPlacementNameLabelKey is the label key on manifestwork to ref to the Placement that select
	// the managedCluster on the manifestWorkReplicaSet's PlacementRef.
	ManifestWorkReplicaSetPlacementNameLabelKey = "work.open-cluster-management.io/placementname"

	// ManifestWorkReplicaSetFinalizer is the name of the finalizer added to ManifestWorkReplicaSet. It is used to ensure
	// related manifestworks is deleted
	ManifestWorkReplicaSetFinalizer = "work.open-cluster-management.io/manifest-work-cleanup"
)

Variables

This section is empty.

Functions

func CreateManifestWork

func CreateManifestWork(
	mwrSet *workapiv1alpha1.ManifestWorkReplicaSet,
	clusterNS string,
	placementRefName string,
) (*workv1.ManifestWork, error)

func GetManifestworkApplied

func GetManifestworkApplied(reason string, message string) metav1.Condition

GetManifestworkApplied return only True status if there all clusters have manifests applied as expected

func GetPlacementDecisionVerified

func GetPlacementDecisionVerified(reason string, message string) metav1.Condition

GetPlacementDecisionVerified return only True status if there are clusters selected

func GetPlacementRollOut added in v0.13.0

func GetPlacementRollOut(reason string, message string) metav1.Condition

GetPlacementRollout return only True status if there are clusters selected

func NewManifestWorkReplicaSetController

func NewManifestWorkReplicaSetController(
	recorder events.Recorder,
	workClient workclientset.Interface,
	workApplier *workapplier.WorkApplier,
	manifestWorkReplicaSetInformer workinformerv1alpha1.ManifestWorkReplicaSetInformer,
	manifestWorkInformer workinformerv1.ManifestWorkInformer,
	placementInformer clusterinformerv1beta1.PlacementInformer,
	placeDecisionInformer clusterinformerv1beta1.PlacementDecisionInformer,
) factory.Controller

Types

type ManifestWorkReplicaSetController

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

type ManifestWorkReplicaSetReconcile

type ManifestWorkReplicaSetReconcile interface {
	// contains filtered or unexported methods
}

ManifestWorkReplicaSetReconcile is a interface for reconcile logic. It returns an updated manifestWorkReplicaSet and whether further reconcile needs to proceed.

Jump to

Keyboard shortcuts

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