Repository navigation
Open
Open
Copy link
Labels
#g-auto-patchingProduct group focused on auto patching software~backendBackend-related issue.~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Description
Related user story
Task
Support versions in GitOps YAML as documented in #53320.
What changes:
app_store_appsentries accept aversionslist. Each version has a name, labels, self-service, categories, configuration, and auto-update settings.setup_experience,display_name, andiconstay on the app.- An entry without
versionsis 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:
namerequired and unique within the app; at most 10 versions; one label set per version; no mixing of flat and nested fields. fleetctl generate-gitopsemitsversionswith one configuration file per version, and the output re-applies with no changes.
Open questions
- Per-version
display_namein the YAML doc. [API / YAML] Add multiple app store app instances for the same software title #53320 lists it underversions, 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".
versionsnesting vs repeated entries. Repeatedapp_store_appsentries (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: trueon a multi-version app flags the first-added version only.fleetctl generate-gitopson a 2-version title emitsversionswith 2 entries and 2 configuration files;fleetctl gitops --dry-runon the output reports no changes.--dry-runvalidates versions without a VPP token.- GitOps and generate-gitops test suites pass.
Metadata
Metadata
Assignees
Labels
#g-auto-patchingProduct group focused on auto patching software~backendBackend-related issue.~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Type
Projects
- StatusShow more project fields✅ Ready for release
Activity
App Store app versions: app_store_apps API, add, edit, and delete end…
App Store app versions: GitOps YAML, batch apply, and generate-gitops (…
Fix the multiple-versions App Store app GitOps example (#58536)