-
Notifications
You must be signed in to change notification settings - Fork 156
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
[k8s plugin] Prepare for implementing livestate apis #5510
Conversation
…cation Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
… retrieval Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
…ve state management Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5510 +/- ##
==========================================
+ Coverage 26.19% 26.55% +0.35%
==========================================
Files 464 465 +1
Lines 49815 49958 +143
==========================================
+ Hits 13049 13266 +217
+ Misses 35733 35633 -100
- Partials 1033 1059 +26 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
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.
LGTM
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.
Thank you!
// BuildApplicationLiveState builds the live state of the application from the given manifests. | ||
func BuildApplicationLiveState(deploytarget string, manifests []Manifest, now time.Time) *model.ApplicationLiveState { |
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.
memo: If possible, it would be nice to implement it under the live state package.
I got the thought to hide the Manifest.body from the other package.
Not consider for now.
What this PR does:
GetLiveResources
in the provider package and use it from the deployment packageBuildApplicationLiveState
to implement the livestate featureWhy we need it:
To implement the livestate API for plugin-architectured piped.
Which issue(s) this PR fixes:
Part of #4980
Does this PR introduce a user-facing change?: