Skip to content
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

Cache Update Mismatch in Kubeapps When Using Flux with reconcileStrategy: Revision #7500

Open
kvaps opened this issue Feb 19, 2024 · 0 comments
Labels
component/plugin-flux Issue related to kubeapps plugin to manage Helm charts via Flux kind/bug An issue that reports a defect in an existing feature

Comments

@kvaps
Copy link
Contributor

kvaps commented Feb 19, 2024

Description:

We have identified an integration issue between Kubeapps and Flux when Flux is configured with the reconcileStrategy: Revision. In this setup, Flux correctly handles changes to Helm charts without version updates by automatically downloading and applying new artifacts upon changes. This behavior aligns with the expected functionality of the reconcileStrategy: Revision.

However, Kubeapps, which builds its cache from Flux's source-controller, does not account for the possibility of chart changes without version updates. Consequently, when a chart is updated without a version change, Kubeapps does not refresh its cache, leading to outdated chart information being displayed.

Proposed Solution:

To address this issue, we propose implementing a mechanism in Kubeapps to detect changes in charts managed by Flux using the reconcileStrategy: Revision, thereby triggering a cache refresh. Specifically, this would involve tracking new artifact saves by Flux and initiating a Kubeapps cache reset in such events. It's important to note that the cache in question is implemented using Redis.

Significance:

Implementing this feature will significantly improve Kubeapps' compatibility with Flux when using the reconcileStrategy: Revision and enhance the user experience by ensuring chart information in Kubeapps remains up-to-date, even when chart versions are not updated.

Steps to Reproduce:

  1. Configure Flux with reconcileStrategy: Revision.
  2. Update a Helm chart without changing the chart version.
  3. Observe that Flux correctly applies the changes and downloaded new artifact
  4. Check Kubeapps and note that the changes are not reflected due to the cache (Redis) not being refreshed.

Expected Behavior:

Upon any changes to charts managed by Flux, Kubeapps should automatically update its Redis cache to accurately reflect the latest chart information, regardless of whether the chart version has been updated.

@kvaps kvaps added the kind/bug An issue that reports a defect in an existing feature label Feb 19, 2024
@antgamdia antgamdia added this to the Community requests milestone Feb 20, 2024
@antgamdia antgamdia added the component/plugin-flux Issue related to kubeapps plugin to manage Helm charts via Flux label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugin-flux Issue related to kubeapps plugin to manage Helm charts via Flux kind/bug An issue that reports a defect in an existing feature
Projects
Status: 🗂 Backlog
Development

No branches or pull requests

2 participants