Skip to content
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

process-user-data: move logic in pkgs #1674

Conversation

mkulke
Copy link
Contributor

@mkulke mkulke commented Jan 24, 2024

The code is functionally equivalent, but all the logic that was implemented in ./cmd directly has been moved to ./pkg to be consistent with other golang code.

Also the log module is being used for log output.

- Move the logic into pkgs
- Use the log module for log output

Signed-off-by: Magnus Kulke <magnuskulke@microsoft.com>
@mkulke mkulke force-pushed the mkulke/move-process-user-data-logic-in-pkg branch from e025ced to 7282b53 Compare January 24, 2024 13:36
@surajssd
Copy link
Member

I have never looked into the user data code. How do I test this?

@mkulke
Copy link
Contributor Author

mkulke commented Jan 25, 2024

I have never looked into the user data code. How do I test this?

beyond the unit tests, only a podvm image build probably.

Copy link
Member

@bpradipt bpradipt left a comment

Choose a reason for hiding this comment

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

/lgtm

@mkulke mkulke merged commit a326448 into confidential-containers:main Jan 31, 2024
18 checks passed
@mkulke mkulke deleted the mkulke/move-process-user-data-logic-in-pkg branch January 31, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants