Skip to content

[ITEP-67228] Updated OperatingSystem Resource as per the design for day2 updates for apiv2 #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 28, 2025

Conversation

SushilLakra
Copy link
Contributor

Description

Updated OperatingSystem Resource as per the design for day2 updates for apiv2

Fixes # (issue)

Changes 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?

Internal Unit Testing for apiv2 has been successfully executed.

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

Copy link
Contributor

@daniele-moro daniele-moro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, @raphaelvrosa let's agree on the deprecation.

@sys-orch sys-orch added the apiv2 label May 26, 2025
Copy link
Contributor

@daniele-moro daniele-moro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I missed a couple of comments earlier. Otherwise LGTM

Copy link
Contributor

@pierventre pierventre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we have changes in other resources? I am still trying to understand the mechanism behind APIv2

@daniele-moro
Copy link
Contributor

why do we have changes in other resources? I am still trying to understand the mechanism behind APIv2

It's a problem of plugins version. APIv2 is not running generate target in CI (for unknown reason), so we are facing these issues now.
@SushilLakra can you try to use protoc-gen-validate at this version github.com/envoyproxy/protoc-gen-validate@v1.0.1?

SushilLakra and others added 6 commits May 28, 2025 19:33
Co-authored-by: Daniele Moro <9449199+daniele-moro@users.noreply.github.com>
…removed OperatingSystemResourceFieldDescription from os.go
@daniele-moro daniele-moro enabled auto-merge (squash) May 28, 2025 15:24
@daniele-moro daniele-moro merged commit 679a1f8 into main May 28, 2025
20 checks passed
@daniele-moro daniele-moro deleted the itep-67228-day2-upgrade-br branch May 28, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants