fix comments

Signed-off-by: xiaobing.meng <xiaobing.meng@alibaba-inc.com>
This commit is contained in:
xiaobing.meng
2021-09-26 15:14:47 +08:00
parent 374a55d8f5
commit fb621ec465
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ const (
RolloutHook HookType = "rollout"
// PreRolloutHook execute webhook before routing traffic to canary
PreRolloutHook HookType = "pre-rollout"
// PreRolloutHook execute webhook after the canary analysis
// PostRolloutHook execute webhook after the canary analysis
PostRolloutHook HookType = "post-rollout"
// ConfirmRolloutHook halt canary analysis until webhook returns HTTP 200
ConfirmRolloutHook HookType = "confirm-rollout"
+1 -1
View File
@@ -159,7 +159,7 @@ func (c *DeploymentController) HasTargetChanged(cd *flaggerv1.Canary) (bool, err
return hasSpecChanged(cd, canary.Spec.Template)
}
// Scale sets the canary deployment replicas
// ScaleToZero Scale sets the canary deployment replicas
func (c *DeploymentController) ScaleToZero(cd *flaggerv1.Canary) error {
targetName := cd.Spec.TargetRef.Name
dep, err := c.kubeClient.AppsV1().Deployments(cd.Namespace).Get(context.TODO(), targetName, metav1.GetOptions{})