-
Notifications
You must be signed in to change notification settings - Fork 99
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
AA: add UpdateConfiguration API #549
Conversation
daa6ddb
to
18ec35f
Compare
As discussed, this API is a workaround API for CoCo to apply initdata proposal. Once we agree on a better way (like systemd scheme), we can deprecate the API. Signed-off-by: Xynnn007 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One question.
tmpfile | ||
.path() | ||
.as_os_str() | ||
.to_str() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this function takes a str, can we just use that directly in try_from
rather than writing it to a tmp file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The str here means the path. This is actually misleading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh right. I didn't read this closely enough.
I'm not really a fan of the tmpfile thing but I guess we can live with it temporarily. Another approach would be to have the kata agent write the file, like it will with other configs and just take the path here.
What is the purpose of the underscore here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config is actually used only in the features coco-as
and kbs
. Without a underscore the lint will cry when we enable neither of them.
As discussed, this API is a workaround API for CoCo to apply initdata proposal. Once we agree on a better way (like systemd scheme), we can deprecate the API.
See kata-containers/kata-containers#9468
cc @fitzthum