Skip to content

Fix node list all flag - #128

Merged
Johan-Liebert1 merged 1 commit into
bootc-dev:mainfrom
HarshwardhanPatil07:fix-node-list-all-flag
Aug 24, 2026
Merged

Fix node list all flag#128
Johan-Liebert1 merged 1 commit into
bootc-dev:mainfrom
HarshwardhanPatil07:fix-node-list-all-flag

Conversation

@HarshwardhanPatil07

Copy link
Copy Markdown
Collaborator

closes: #126

What I did:

harshwardhan:~/Downloads/repos/bink$ ./bink node list --cluster-name test
Found 1 cluster node(s):

  ✓ node1 (role: control-plane, status: running, created: 2026-08-24 10:49:22)

harshwardhan:~/Downloads/repos/bink$ ./bink node list --cluster-name test --all
Found 2 cluster node(s):

  ✓ node1 (role: control-plane, status: running, created: 2026-08-24 10:49:22)
  ✗ node2 (role: worker, status: exited, created: 2026-08-24 10:51:33)

The --all flag was accepted but never used — all nodes (running and
stopped) were always shown. Wire it up so that non-running nodes are
hidden by default and shown when --all is passed.

Fixes: bootc-dev#126

Assisted-by: AI
Signed-off-by: HarshwardhanPatil07 <harshpat@redhat.com>
@HarshwardhanPatil07

Copy link
Copy Markdown
Collaborator Author

@Johan-Liebert1 @alicefr @ptalgulk01 PTAL

Comment thread internal/cli/node/list.go

state = strings.TrimSpace(state)

if !showAll && state != "running" {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really use constants and not have strings floating around in code. Not a blocker though

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it needs overall cleanup i guess? should this be done as followup pr?

@Johan-Liebert1
Johan-Liebert1 merged commit d2eb71a into bootc-dev:main Aug 24, 2026
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bink node list --all flag is there but has no effect

2 participants