mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
feat(kubernetes/summary): summary of k8s actions upon deploying/updating resources EE-436 (#5137)
* feat EE-440/EE-436 kubernetes-resources-summary-panel * bugfix: returning created resources after update * fixed patch based bugs - displaying accurate updates for k8s resources Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
267968e099
commit
eae2f5c9fc
16 changed files with 539 additions and 7 deletions
|
@ -220,6 +220,11 @@ class KubernetesApplicationService {
|
|||
// resource creation flow
|
||||
// should we keep formValues > Resource_1 || Resource_2
|
||||
// or should we switch to formValues > Composite > Resource_1 || Resource_2
|
||||
/**
|
||||
* NOTE: Keep this method flow in sync with `getCreatedApplicationResources` method in the `applicationService` file
|
||||
* To synchronise with kubernetes resource creation summary output, any new resources created in this method should
|
||||
* also be displayed in the summary output (getCreatedApplicationResources)
|
||||
*/
|
||||
async createAsync(formValues) {
|
||||
try {
|
||||
let [app, headlessService, service, claims] = KubernetesApplicationConverter.applicationFormValuesToApplication(formValues);
|
||||
|
@ -266,6 +271,11 @@ class KubernetesApplicationService {
|
|||
|
||||
/* #region PATCH */
|
||||
// this function accepts KubernetesApplicationFormValues as parameters
|
||||
/**
|
||||
* NOTE: Keep this method flow in sync with `getUpdatedApplicationResources` method in the `applicationService` file
|
||||
* To synchronise with kubernetes resource creation, update and delete summary output, any new resources created
|
||||
* in this method should also be displayed in the summary output (getUpdatedApplicationResources)
|
||||
*/
|
||||
async patchAsync(oldFormValues, newFormValues) {
|
||||
try {
|
||||
const [oldApp, oldHeadlessService, oldService, oldClaims] = KubernetesApplicationConverter.applicationFormValuesToApplication(oldFormValues);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue