fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Incomplete error message for gitops --delete-other-teams

Open chrstphr84 opened this issue 8 months ago • 3 comments

Fleet version: 4.82.0 Web browser and operating system: N/A


💥  Actual behavior

Running fleetctl gitops --delete-other-teams on with misconfigured configuration results in an error message that is truncated:

Image

🛠️ To fix

Update the error message so the full text is displayed.

🧑‍💻  Steps to reproduce

These steps:

  • [ ] Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
  • [x] Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
  1. Create or modify a GitOps team configuration file (e.g., default.yml) with controls section missing.
  2. Run: fleetctl gitops -f /path/to/default.yml --delete-other-teams
  3. Observe the returned error message.

chrstphr84 avatar Mar 09 '26 23:03 chrstphr84

This issue has been automatically tagged as unreleased. If this is is incorrect, you may replace the label with ~released-bug. If this is correct, or might be correct, move this bug onto the appropriate product board to get a fix underway.

github-actions[bot] avatar Mar 09 '26 23:03 github-actions[bot]

QA'd all new/changed functionality manually

  • [x] fleetctl gitops -f /path/to/default.yml without controls, gives error: 'controls' must be set on global config, no-team.yml or unassigned.yml
  • [x] fleetctl gitops -f /path/to/default.yml with empty controls works
  • [x] fleetctl gitops -f /path/to/default.yml -f /path/to/no-team.yml without controls, gives error: 'controls' must be set on global config or no-team.yml
  • [x] fleetctl gitops -f /path/to/default.yml -f /path/to/unassigned.yml without controls, gives error: 'controls' must be set on global config or unassigned.yml
  • [x] fleetctl gitops -f /path/to/default.yml -f /path/to/no-team.yml with empty controls in no-team.yml works
  • [x] fleetctl gitops -f /path/to/default.yml -f /path/to/unassigned.yml with empty controls in unassigned.yml works
  • [x] fleetctl gitops -f /path/to/no-team.yml gives error global config must be provided alongside no-team.yml
  • [x] fleetctl gitops -f /path/to/no-team.yml gives error global config must be provided alongside unassigned.yml
  • [x] fleetctl gitops -f /path/to/some-real-team.yml with no controls works

xpkoala avatar Mar 11 '26 14:03 xpkoala

Clarity in message, Fleet's code now sings truth, full. Ease in every step.

fleet-release avatar Mar 11 '26 14:03 fleet-release