Skip to content

Commit

Permalink
fix: canary rollout steps are visible only during active canary rollout
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Matyushentsev <[email protected]>
  • Loading branch information
alexmt committed Sep 28, 2021
1 parent 4dedca7 commit ac2762b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const parseInfoFromResourceNode = (
if (spec.strategy.canary) {
ro.strategy = "Canary";
const steps = spec.strategy?.canary?.steps || [];
ro.steps = steps;

if (status.currentStepIndex && steps.length > 0) {
ro.step = `${status.currentStepIndex}/${steps.length}`;
ro.steps = steps;
}

const { currentStep, currentStepIndex } = parseCurrentCanaryStep(resource);
Expand Down Expand Up @@ -56,7 +56,6 @@ const parseInfoFromResourceNode = (
ro.current = status.replicas;
ro.updated = status.updatedReplicas;
ro.available = status.availableReplicas;
console.log(ro);
return ro;
};

Expand Down

0 comments on commit ac2762b

Please sign in to comment.