Skip to content

App Store app versions: GitOps YAML parse, apply ordering, and generate round-trip #53640

Open

Description

@cdcme

Related user story

#47904

Task

Support versions in GitOps YAML as documented in #53320.

What changes:

  • app_store_apps entries accept a versions list. Each version has a name, labels, self-service, categories, configuration, and auto-update settings. setup_experience, display_name, and icon stay on the app.
  • An entry without versions is one version named "Default version", so existing files keep working.
  • On the first run, versions are created in list order, which sets precedence. Reordering later changes nothing. Editing a version updates it in place. Removing a version deletes only that version.
  • Validation: name required and unique within the app; at most 10 versions; one label set per version; no mixing of flat and nested fields.
  • fleetctl generate-gitops emits versions with one configuration file per version, and the output re-applies with no changes.

Open questions

  • Per-version display_name in the YAML doc. [API / YAML] Add multiple app store app instances for the same software title #53320 lists it under versions, but appearance is title-level everywhere else. Marko confirms it moves to the app entry.
  • Flat form after upgrade. The doc drops the flat example. Marko confirms the doc states that a flat entry is one version named "Default version".
  • versions nesting vs repeated entries. Repeated app_store_apps entries (same app, different name) would need no new shape. Nesting is already written. Marko decides; default is nesting.

Implementation notes (verified code paths and design rationale) are in the spec doc; ask Carlo for it.

Condition of satisfaction

  • A file with 2 versions applies 2 versions. A flat entry applies one "Default version". Missing name, duplicate name, mixed flat and nested fields, 11 versions, and 2 label sets on one version each fail with a clear message.
  • First run creates versions in list order and that order sets precedence. Reversing the list and re-applying changes nothing.
  • Changing one version's configuration updates that version only. Removing it from the file deletes that version only. Removing the app deletes every version.
  • setup_experience: true on a multi-version app flags the first-added version only.
  • fleetctl generate-gitops on a 2-version title emits versions with 2 entries and 2 configuration files; fleetctl gitops --dry-run on the output reports no changes.
  • --dry-run validates versions without a VPP token.
  • GitOps and generate-gitops test suites pass.

Activity

  1. added
    ~backend
    on Sep 21, 2026
  2. added theissue type on Sep 21, 2026
  3. added
    ~sub-task
    #g-auto-patching
    on Sep 21, 2026
  4. modified the milestone: 4.94.0 on Sep 21, 2026
  5. self-assigned this
    on Oct 5, 2026
  6. added a commit that references this issue on Oct 7, 2026
    4d45b17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

#g-auto-patching~backend~sub-task

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions