Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- func CloneSetStatusSynced(deploy *tritonappsv1alpha1.DeployFlow, cl client.Client) bool
- func DeletePod(ns, name string, cl client.Client) error
- func PatchCloneSet(deploy *tritonappsv1alpha1.DeployFlow, patchBytes []byte, cl client.Client) error
- type CloneSetStatusChangedPredicate
- type DeployFlowReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new DeployFlow Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.
func CloneSetStatusSynced ¶
func CloneSetStatusSynced(deploy *tritonappsv1alpha1.DeployFlow, cl client.Client) bool
func PatchCloneSet ¶
func PatchCloneSet(deploy *tritonappsv1alpha1.DeployFlow, patchBytes []byte, cl client.Client) error
Types ¶
type CloneSetStatusChangedPredicate ¶
CloneSetStatusChangedPredicate is a predicate which focuses on CloneSet status changes.
func (CloneSetStatusChangedPredicate) Create ¶
func (CloneSetStatusChangedPredicate) Create(e event.CreateEvent) bool
func (CloneSetStatusChangedPredicate) Update ¶
func (CloneSetStatusChangedPredicate) Update(e event.UpdateEvent) bool
type DeployFlowReconciler ¶
type DeployFlowReconciler struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
DeployFlowReconciler reconciles a DeployFlow object
func (*DeployFlowReconciler) DeleteCloneSetWhenActionIsScaleInZero ¶
func (r *DeployFlowReconciler) DeleteCloneSetWhenActionIsScaleInZero(dl *tritonappsv1alpha1.DeployFlow) error
DeleteCloneSetWhenActionIsScaleInZero handle zero replicas cloneset
func (*DeployFlowReconciler) Reconcile ¶
Reconcile reads that state of the cluster for a CloneSet object and makes changes based on the state read and what is in the CloneSet.Spec
func (*DeployFlowReconciler) ResetReplicasAfterCanceled ¶
func (r *DeployFlowReconciler) ResetReplicasAfterCanceled(idl *internaldeploy.Deploy) error
Click to show internal directories.
Click to hide internal directories.