diff --git a/pkg/apis/flagger/v1beta1/canary.go b/pkg/apis/flagger/v1beta1/canary.go index 0e6c533c3..22922b70f 100644 --- a/pkg/apis/flagger/v1beta1/canary.go +++ b/pkg/apis/flagger/v1beta1/canary.go @@ -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" diff --git a/pkg/canary/deployment_controller.go b/pkg/canary/deployment_controller.go index a4e03d620..e6e990f06 100644 --- a/pkg/canary/deployment_controller.go +++ b/pkg/canary/deployment_controller.go @@ -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{})