Skip to content

Simplify cluster-id flag handling in cmd/bundle#4979

Open
denik wants to merge 1 commit intomainfrom
denik/cleanup1
Open

Simplify cluster-id flag handling in cmd/bundle#4979
denik wants to merge 1 commit intomainfrom
denik/cleanup1

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented Apr 15, 2026

Changes

  • Merge duplicate --compute-id / --cluster-id flag checks into a single condition in deploy.go and plan.go, since both flags bind to the same variable.
  • Make InitFunc assignment in plan.go unconditional, matching deploy.go.

Why

Both flags write to the same clusterId variable, so checking them separately is redundant. Aligning plan.go with deploy.go reduces the chance of future divergence.

Tests

No new tests — behavior-preserving refactor.

Merge two separate if-blocks for compute-id and cluster-id flags into
one since both bind to the same variable. Remove unnecessary outer
conditional in plan.go that guarded InitFunc (deploy.go already sets
it unconditionally).

Task: 001.md

Co-authored-by: Isaac
@github-actions
Copy link
Copy Markdown

Waiting for approval

Based on git history, these people are best suited to review:

  • @shreyas-goenka -- recent work in cmd/bundle/
  • @andrewnester -- recent work in cmd/bundle/

Eligible reviewers: @anton-107, @janniklasrose, @lennartkats-db, @pietern

Suggestions based on git history. See OWNERS for ownership rules.

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.

1 participant