vmware-tanzu / kubeapps

A web-based UI for deploying and managing applications in Kubernetes clusters
https://kubeapps.dev
Other
4.86k stars 701 forks source link

[carvel] Install details page not updating completely without refresh #4447

Open absoludity opened 2 years ago

absoludity commented 2 years ago

Description:

When installing a package with Carvel, the details are displayed and some parts of the page update, but not all. Importantly for CI (and users :) ), the pie chart showing completed deploys remains hidden and "No workload found" is displayed:

gatekeeper-install-no-update-without-refresh

Refreshing the page and all the relevant info is displayed:

gatekeeper-install-after-refresh

Steps to reproduce the issue:

  1. Install Kubeapps configured with Carvel support
  2. Install TCE repo
  3. Deploy gatekeeper (for example).

Describe the results you received:

Page updates with other resources, but then no more updates are displayed.

Describe the results you expected:

Page continues to update as install progresses, displaying the pie chart and reconciliation notes etc.

Additional information you deem important (e.g. issue happens only occasionally):

I need this functionality for the process to pass a minimal CI test, so am moving to committed.

absoludity commented 2 years ago

This may be an issue specific to something about the package. I just installed a different carvel package from a different repo and the pie chart displayed not long after deploy, without a refresh.

absoludity commented 2 years ago

A little more debugging here: the reason that the package doesn't get updated is because, as per the screenshot, the initial call to get the installed package resource refs does not return any pods or other resources that we watch for, so no watching for more resources is initiated.

Not yet sure if it's because the pods are created by one of the CRDs that are added.