Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] rollout status #596

Closed
markrity opened this issue Jul 27, 2020 · 1 comment · Fixed by #1001
Closed

[Feature Request] rollout status #596

markrity opened this issue Jul 27, 2020 · 1 comment · Fixed by #1001
Labels
enhancement New feature or request good first issue Good for newcomers kubectl-plugin

Comments

@markrity
Copy link

markrity commented Jul 27, 2020

There would be an awesome if cli had a functionality to get a current status of a rollout.

Command:
kubectl argo rollouts status rollout guestbook
Returns:
Healthy

or as a flag.
kubectl argo rollouts get rollout guestbook --status

To know if it Healthy,Processing or Degraded.

@markrity
Copy link
Author

In addition I would add that knowing also the status of each ReplicaSet (blue/green) , would be great.
Lets say that overall Rollout got Degraded , but I still would like to know if blue-ReplicaSet aka preview , is Healthy or not .

something like
kubectl argo rollouts get rollout guestbook --statusPreview
or
kubectl argo rollouts get rollout guestbook --status --preview

returns
Healthy

it is really useful for building fail-less CD Pipelines.

cronik added a commit to cronik/argo-rollouts that referenced this issue Sep 23, 2020
Add common k8s print flags to get rollout/experiments commands.

```
-o, --output string                 Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file.
      --template string               Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
```

Example usages:
```
# Output json
kubectl argo rollouts get rollout guestbook -o json

# Print status
kubectl argo rollouts get rollout guestbook -o jsonpath='{.spec.status}'
Healthy

# Print Blue Green preview replica set status
kubectl argo rollouts get rollout guestbook -o jsonpath='{.spec.replicaSets[?(@.spec.preview==true)].spec.status}'
Progressing
```

Refs argoproj#596
jessesuen pushed a commit that referenced this issue Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers kubectl-plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants