-
Notifications
You must be signed in to change notification settings - Fork 100
enhance: strip k8s scheduling details from app objects #2460
Conversation
928608c
to
ccf37c2
Compare
c88c8bd
to
72bf177
Compare
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.
Couple of comments about non functional changes to comments but otherwise LGTM, test failure seem to be unrelated
// AppToAppInstance converts an App to a [v1.AppInstance] and returns the result. | ||
func AppToAppInstance(in *App) *v1.AppInstance { |
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.
Might be worth mentioning in the comment on this function that it drops some fields, or maybe explicitly name them
// Ensure that AppInstanceStatus fields not surfaced by AppStatus are preserved. | ||
// Note: This is necessary because obj has been translated from an apiv1.App before being passed to this method, | ||
// and since the AppStatus is a subset of the AppInstanceStatus, the App |
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.
Seems like maybe this comment got cut short
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.
nice catch, I'll update.
4d94148
to
3e8237f
Compare
Hide k8s scheduling details from end-users by removing the scheduling status field from the `Apps` API. The scheduling status field of `AppInstances` is preserved as an internal implementation detail. Signed-off-by: Nick Hale <[email protected]>
3e8237f
to
fc7939c
Compare
Hide k8s scheduling details from end-users by removing the
scheduling status field from the
Apps
API. The scheduling status fieldof
AppInstances
is preserved as an internal implementation detail.Addresses #2457 for runtime.