Documentation ¶
Index ¶
- Constants
- func CreateManifestWork(mwrSet *workapiv1alpha1.ManifestWorkReplicaSet, clusterNS string, ...) (*workv1.ManifestWork, error)
- func GetManifestworkApplied(reason string, message string) metav1.Condition
- func GetPlacementDecisionVerified(reason string, message string) metav1.Condition
- func GetPlacementRollOut(reason string, message string) metav1.Condition
- func NewManifestWorkReplicaSetController(recorder events.Recorder, workClient workclientset.Interface, ...) factory.Controller
- type ManifestWorkReplicaSetController
- type ManifestWorkReplicaSetReconcile
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 ¶
GetManifestworkApplied return only True status if there all clusters have manifests applied as expected
func GetPlacementDecisionVerified ¶
GetPlacementDecisionVerified return only True status if there are clusters selected
func GetPlacementRollOut ¶ added in v0.13.0
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.
Click to show internal directories.
Click to hide internal directories.