Skip to content

GitOps fleet file errors still say "team" instead of "fleet" #57505

Open

Description

@Brajim20

Goal

User story
As an IT admin managing fleets via GitOps,
I want to see error messages that say "fleet" instead of "team"
so that I can understand the error using the same terminology as the rest of Fleet.

For help creating a user story, see "Writing a good user story" in the website handbook.

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:

  1. 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)
  2. 'custom_host_vitals' cannot be set on a team file (parseCustomHostVitals)
  3. 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.

  1. In a fleet file, add a package entry with a url next to its path:
    software:
      packages:
        - path: ./software/a.yml   # any package YAML
          url: https://example.com/b.pkg
  2. In a fleet file, add custom_host_vitals: [].
  3. 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.

Activity

  1. added
    #g-auto-patching
    on Nov 4, 2026
  2. Prajwal2246 commented on Nov 4, 2026

    @Prajwal2246
    Contributor

    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?

  3. Brajim20 commented on Nov 4, 2026

    @Brajim20
    MemberAuthor

    @marko-lisica can you take a look at this approach?>

  4. marko-lisica commented on Nov 5, 2026

    @marko-lisica
    Member

    @Brajim20 @Prajwal2246, the proposed change makes sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    #g-auto-patchingquick-win

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions