Skip to content

Changes for API handler implementation update for OS Resource in apiv2 as per the day2 upgrade#257

Merged
daniele-moro merged 10 commits intomainfrom
itep-67228-hndlr-impl-update-br
Jun 13, 2025
Merged

Changes for API handler implementation update for OS Resource in apiv2 as per the day2 upgrade#257
daniele-moro merged 10 commits intomainfrom
itep-67228-hndlr-impl-update-br

Conversation

@SushilLakra
Copy link
Copy Markdown
Contributor

@SushilLakra SushilLakra commented Jun 11, 2025

Description

Changes for API handler implementation update for OS Resource in apiv2 as per the day2 upgrade

Fixes ITEP-67228

Changes required in OSProfile:

installed_packages: field is used to track only packages installed at day 0, for Immutable these come from the Manifest file published together with the EMT image. For Mutable, those are filled using the Ubuntu manifest file. For Mutable, this won't include Bare Metal Agents packages, since those are installed during Day 0, but they are not part of the Ubuntu manifest.
installed_packages_source: field is the URL where the Manifest file is stored. The field is immutable. This is added to allow manual creation of OSProfiles (advanced feature).
update_sources: the field is deprecated, and should not be used anymore.
kernel_commands: the field is deprecated, and should not be used anymore.

installed_packages: read-only from API
installed_pacakges_source: r/w from API
update_sources: deprecate
kernel_commands: deprecate

Any Newly Introduced Dependencies

No

How Has This Been Tested?

Tests will be done using another Jira Tasks.

Checklist:

  • I agree to use the APACHE-2.0 license for my code changes
  • I have not introduced any 3rd party dependency changes
  • I have performed a self-review of my code

Comment thread apiv2/internal/server/os.go Outdated
Comment thread inventory/pkg/testing/opts.go Outdated
Comment thread apiv2/internal/server/os.go Outdated
@daniele-moro daniele-moro self-requested a review June 13, 2025 07:23
@daniele-moro daniele-moro merged commit a7dd2a4 into main Jun 13, 2025
21 checks passed
@daniele-moro daniele-moro deleted the itep-67228-hndlr-impl-update-br branch June 13, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants