You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitOps fleet file errors still say "team" instead of "fleet" #57505
Follow-up to #54778 and #55077. These GitOps errors for a fleet file (fleets/<name>.yml) still say "team". All are in pkg/spec/gitops.go:
the software package defined in <path> must not have icons, scripts, queries, URL, or hash specified at the team level (HydrateToPackageLevel; also the install_script, URL, or hash variant for script packages)
'custom_host_vitals' cannot be set on a team file (parseCustomHostVitals)
team 'name' is required (parseName) and failed to read team settings file <path>: … (parseTeamSettings)
Change
TODO
Test plan
These checks run in fleetctl while it parses the YAML, so --dry-run is enough.
In a fleet file, add a package entry with a url next to its path:
software:
packages:
- path: ./software/a.yml # any package YAMLurl: https://example.com/b.pkg
In a fleet file, add custom_host_vitals: [].
In a fleet file, set name: "" and settings: → path: ./missing-settings.yml (a file that doesn't exist).
Run fleetctl gitops -f fleets/<name>.yml --dry-run for each.
Expected: every error says "fleet" instead of "team" (e.g. "at the fleet level", "cannot be set on a fleet file", "fleet 'name' is required", "failed to read fleet settings file"), and none of them says "team" anywhere.
Thanks for the QA on #55077@Brajim20! I'd like to take this one.
I found all of them in pkg/spec/gitops.go: the three "at the team level" package errors in HydrateToPackageLevel (including the script-package variant), team 'name' is required, failed to read team settings file, and 'custom_host_vitals' cannot be set on a team file. I'll change each to "fleet", update the tests that match these strings, and check the output with fleetctl gitops --dry-run using the test plan. Does that scope work?
Activity
Prajwal2246 commentedon Nov 4, 2026
Thanks for the QA on #55077 @Brajim20! I'd like to take this one.
I found all of them in
pkg/spec/gitops.go: the three "at the team level" package errors inHydrateToPackageLevel(including the script-package variant),team 'name' is required,failed to read team settings file, and'custom_host_vitals' cannot be set on a team file. I'll change each to "fleet", update the tests that match these strings, and check the output withfleetctl gitops --dry-runusing the test plan. Does that scope work?Brajim20 commentedon Nov 4, 2026
@marko-lisica can you take a look at this approach?>
marko-lisica commentedon Nov 5, 2026
@Brajim20 @Prajwal2246, the proposed change makes sense to me.