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 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" // 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) (*workv1.ManifestWork, error)
func GetManifestworkApplied ¶
Return only True status if there all clusters have manifests applied as expected
func GetPlacementDecisionVerified ¶
Return only True status if there are clusters selected
func NewManifestWorkReplicaSetController ¶
func NewManifestWorkReplicaSetController( recorder events.Recorder, workClient workclientset.Interface, 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.