Add Waiting canary status phase

means the canary rollout is paused (waiting for confirmation to proceed)
This commit is contained in:
stefanprodan
2019-07-24 12:00:04 +03:00
parent a0a4d4cfc5
commit dfdcfed26e
5 changed files with 8 additions and 0 deletions
+1
View File
@@ -174,6 +174,7 @@ spec:
- ""
- Initializing
- Initialized
- Waiting
- Progressing
- Succeeded
- Failed
+1
View File
@@ -175,6 +175,7 @@ spec:
- ""
- Initializing
- Initialized
- Waiting
- Progressing
- Succeeded
- Failed
+1
View File
@@ -174,6 +174,7 @@ spec:
- ""
- Initializing
- Initialized
- Waiting
- Progressing
- Succeeded
- Failed
+2
View File
@@ -43,6 +43,8 @@ const (
// CanaryPhaseInitialized means the primary deployment, hpa and ClusterIP services
// have been created along with the service mesh or ingress objects
CanaryPhaseInitialized CanaryPhase = "Initialized"
// CanaryPhaseWaiting means the canary rollout is paused (waiting for confirmation to proceed)
CanaryPhaseWaiting CanaryPhase = "Waiting"
// CanaryPhaseProgressing means the canary analysis is underway
CanaryPhaseProgressing CanaryPhase = "Progressing"
// CanaryPhaseSucceeded means the canary analysis has been successful
+3
View File
@@ -205,6 +205,9 @@ func (c *Deployer) MakeStatusConditions(canaryStatus flaggerv1.CanaryStatus,
case flaggerv1.CanaryPhaseInitialized:
status = corev1.ConditionTrue
message = "Deployment initialization completed."
case flaggerv1.CanaryPhaseWaiting:
status = corev1.ConditionUnknown
message = "Waiting for approval."
case flaggerv1.CanaryPhaseProgressing:
status = corev1.ConditionUnknown
message = "New revision detected, starting canary analysis."