cli
: Add --quiet
flag to the healthcheck command #1232
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1232
Loading…
Reference in a new issue
No description provided.
Delete branch "achuprov/frostfs-node:feat/healthcheck_quiet"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #1209
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com
@ -56,0 +56,4 @@
QuietFlag = "quiet"
QuietFlagShorthand = "q"
QuietFlagUsage = "Return only the exit code"
That is misleading: we have 0 exit code when the status is not ready.
Sth like
Print nothing and exit with non-zero code on failure
?@ -51,2 +57,4 @@
verifyResponse(cmd, resp.GetSignature(), resp.GetBody())
if quietFlag, _ := cmd.Flags().GetBool(commonflags.QuietFlag); quietFlag {
if strings.Contains(resp.GetBody().GetHealthStatus().String(), healthcheckOKStatus) {
GetHealthStatus
returns enum, we could compare numbers instead of strings.ac09fb7b79
to4c6e986785
@ -51,2 +55,4 @@
verifyResponse(cmd, resp.GetSignature(), resp.GetBody())
if quietFlag, _ := cmd.Flags().GetBool(commonflags.QuietFlag); quietFlag {
if *resp.GetBody().GetHealthStatus().Enum() == control.HealthStatus_READY {
why is it
*x.Enum()
and not justx
?fixed
4c6e986785
toedc6509314