deployflow

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

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 DeletePod

func DeletePod(ns, name string, cl client.Client) error

func PatchCloneSet

func PatchCloneSet(deploy *tritonappsv1alpha1.DeployFlow, patchBytes []byte, cl client.Client) error

Types

type CloneSetStatusChangedPredicate

type CloneSetStatusChangedPredicate struct {
	predicate.Funcs
}

CloneSetStatusChangedPredicate is a predicate which focuses on CloneSet status changes.

func (CloneSetStatusChangedPredicate) Create

func (CloneSetStatusChangedPredicate) Update

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

Jump to

Keyboard shortcuts

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