Skip to content

[dashboard] Cumulative update - #1042

Merged
Andrei Kvapil (kvaps) merged 1 commit into
mainfrom
upd-dashboard
Jun 10, 2025
Merged

[dashboard] Cumulative update#1042
Andrei Kvapil (kvaps) merged 1 commit into
mainfrom
upd-dashboard

Conversation

@kvaps

@kvaps Andrei Kvapil (kvaps) commented Jun 9, 2025

Copy link
Copy Markdown
Member

This PR includes fixes and updates for cozystack dashboard:

fix client rate limiter

fixes the error client rate limiter Wait returned an error: context canceled
The QPS and Burst options were set after the kubernetes client initalized and had no effect

The limits are also increased fivefold:

-         - --kube-api-qps=50.0
-         - --kube-api-burst=100
+         - --kube-api-qps=250.0
+         - --kube-api-burst=500

fix relative urls

Fixes regression introduced in #935 which suddenly removed previus workaround #102

Now the proper fix prepared.

Related to upstream issue vmware-tanzu/kubeapps#7740

remove version selector

from both package insallation page and upgrading page
Screenshot 2025-06-10 at 1 47 10

now it always will default to the latest package version

always fetch details from the latest version

If old package version installed it will display information from the latest package in repository. This and previus fix actually remove the need for having versions_map logic and pack multiple charts for the release. But informs user about newer versions and allows to perform upgrade on demand in specific time:

Screenshot 2025-06-10 at 1 52 53

[Remove plugin name from header]cozystack/kubeapps@ffc0b02

We always use flux though

Screenshot 2025-06-10 at 1 55 39

Fix switching context from app view

Fixes the error message while swtiching tenant from the application view

An error occurred while fetching the application: Unable to get installed package.

Summary by CodeRabbit

  • New Features

    • Added new configuration options for API request rate limits in the dashboard settings.
  • Style

    • Updated dashboard appearance to hide version information and specific label elements.
  • Chores

    • Updated internal references to the latest version of the dashboard source code.

@coderabbitai

coderabbitai Bot commented Jun 9, 2025

Copy link
Copy Markdown
Contributor
## Walkthrough

This update modifies CSS rules in a template to hide specific UI elements in the dashboard and updates the commit references in two Dockerfiles to use a new version of the Kubeapps repository. It also adds two new configuration parameters (`qps` and `burst`) to the `values.yaml` file under the `kubeappsapis` section. No changes were made to exported or public entities or to build logic outside the commit reference updates.

## Changes

| File(s)                                                                                           | Change Summary                                                           |
|-------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| packages/core/platform/templates/_helpers.tpl                                                    | Added CSS rules to hide `.header-version` and `.label.label-info-secondary` elements. |
| packages/system/dashboard/images/dashboard/Dockerfile<br>packages/system/dashboard/images/kubeapps-apis/Dockerfile | Updated `COMMIT_REF` to a new Kubeapps commit hash.                      |
| packages/system/dashboard/values.yaml                                                           | Added `qps` and `burst` parameters under `kubeappsapis` configuration.  |

## Poem

> In the dashboard’s gentle light,  
> Some labels now hide out of sight.  
> With Docker builds, a version new,  
> The code refreshed, the styles too.  
> A rabbit hops, with CSS delight—  
> “Invisible things make the UI right!”  
> 🐇✨

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1199147 and 2669ab6.

📒 Files selected for processing (4)
  • packages/core/platform/templates/_helpers.tpl (1 hunks)
  • packages/system/dashboard/images/dashboard/Dockerfile (1 hunks)
  • packages/system/dashboard/images/kubeapps-apis/Dockerfile (1 hunks)
  • packages/system/dashboard/values.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • packages/system/dashboard/values.yaml
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/core/platform/templates/_helpers.tpl
  • packages/system/dashboard/images/dashboard/Dockerfile
  • packages/system/dashboard/images/kubeapps-apis/Dockerfile
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
packages/core/platform/templates/_helpers.tpl (1)

72-77: Add context for CSS overrides
Hiding .header-version and .label.label-info-secondary could be non-obvious to future maintainers. Please add a brief comment explaining the intent.

Apply this diff:

@@ -70,6 +70,9
       .appview-first-row section[aria-labelledby="access-urls-title"] {
         width: 100%;
       }
+      /* Hide version badge to streamline header display */
+      /* Hide secondary info labels that are not relevant to user view */
       .header-version {
         display: none;
       }
       .label.label-info-secondary {
         display: none;
       }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 96506c7 and 1199147.

📒 Files selected for processing (3)
  • packages/core/platform/templates/_helpers.tpl (1 hunks)
  • packages/system/dashboard/images/dashboard/Dockerfile (1 hunks)
  • packages/system/dashboard/images/kubeapps-apis/Dockerfile (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Build
  • GitHub Check: pre-commit
🔇 Additional comments (1)
packages/system/dashboard/images/dashboard/Dockerfile (1)

4-4: Sync commit reference with kubeapps-apis image
Updated COMMIT_REF to d89e721fcb3130de6027251b1befb0208fdbeb85 for consistency across dashboard components.
No functional changes; looks good.


FROM alpine AS source
ARG COMMIT_REF=dd02680d796c962b8dcc4e5ea70960a846c1acdc
ARG COMMIT_REF=d89e721fcb3130de6027251b1befb0208fdbeb85

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

❓ Verification inconclusive

Confirm updated Kubeapps commit reference
The COMMIT_REF ARG has been updated to d89e721fcb3130de6027251b1befb0208fdbeb85, matching the dashboard image.
Ensure this commit exists in the cozystack/kubeapps repo before merging.


🏁 Script executed:

#!/bin/bash
# Verify that the new commit hash is present in the remote repository
git ls-remote https://github.com/cozystack/kubeapps.git d89e721fcb3130de6027251b1befb0208fdbeb85

Length of output: 98


Verify Kubeapps commit reference using the GitHub API or a shallow fetch
The current git ls-remote check won’t locate a raw commit SHA (it only lists refs). Please confirm that d89e721fcb3130de6027251b1befb0208fdbeb85 actually exists in the cozystack/kubeapps repo by using one of these approaches:

• Using GitHub’s REST API:

curl -s -o /dev/null -w "%{http_code}\n" \
  https://api.github.com/repos/cozystack/kubeapps/commits/d89e721fcb3130de6027251b1befb0208fdbeb85

Expect an HTTP 200 status for a valid commit; 404 if it’s missing.

• Or fetch and validate locally:

git clone --no-checkout --depth=1 https://github.com/cozystack/kubeapps.git temp-repo
cd temp-repo
git fetch --depth=1 origin d89e721fcb3130de6027251b1befb0208fdbeb85
git cat-file -t d89e721fcb3130de6027251b1befb0208fdbeb85

It should output commit.

Once you’ve confirmed the commit exists, you can safely merge this ARG update.

🤖 Prompt for AI Agents
In packages/system/dashboard/images/kubeapps-apis/Dockerfile at line 7, the
COMMIT_REF argument has been updated to a new commit SHA. The current
verification using git ls-remote is insufficient to confirm the commit exists in
the cozytsack/kubeapps repo. To fix this, verify the commit by either using the
GitHub REST API to check for an HTTP 200 response on the commit URL or by
performing a shallow fetch of the commit locally and confirming it is a valid
commit object. Only after confirming the commit exists should you proceed with
merging this update.

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
@kvaps
Andrei Kvapil (kvaps) merged commit 6183b71 into main Jun 10, 2025
@kvaps
Andrei Kvapil (kvaps) deleted the upd-dashboard branch June 10, 2025 08:04
@NickVolynkin Nick Volynkin (NickVolynkin) mentioned this pull request Jun 16, 2025
8 tasks
Andrei Kvapil (kvaps) added a commit that referenced this pull request Jun 16, 2025
This PR includes fixes and updates for cozystack dashboard:

### [fix client rate
limiter](cozystack/kubeapps@b1467ce)

fixes the error `client rate limiter Wait returned an error: context
canceled`
The QPS and Burst options were set after the kubernetes client
initalized and had no effect

The limits are also increased fivefold:

```diff
-         - --kube-api-qps=50.0
-         - --kube-api-burst=100
+         - --kube-api-qps=250.0
+         - --kube-api-burst=500
```


### [fix relative
urls](cozystack/kubeapps@e2153e2)

Fixes regression introduced in
#935 which suddenly removed
previus workaround #102

Now the proper fix prepared.

Related to upstream issue
vmware-tanzu/kubeapps#7740

### [remove version
selector](cozystack/kubeapps@f412a6a)

from both package insallation page and upgrading page
<img width="505" alt="Screenshot 2025-06-10 at 1 47 10"
src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fcozystack%2Fcozystack%2Fpull%2F%3Ca+href%3D"https://github.com/user-attachments/assets/36068264-2878-4b82-a159-6c911f1c1eef">https://github.com/user-attachments/assets/36068264-2878-4b82-a159-6c911f1c1eef"
/>

now it always will default to the latest package version

### [always fetch details from the latest
version](cozystack/kubeapps@741a7dd)

If old package version installed it will display information from the
latest package in repository. This and previus fix actually remove the
need for having versions_map logic and pack multiple charts for the
release. But informs user about newer versions and allows to perform
upgrade on demand in specific time:

<img width="423" alt="Screenshot 2025-06-10 at 1 52 53"
src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fcozystack%2Fcozystack%2Fpull%2F%3Ca+href%3D"https://github.com/user-attachments/assets/dd571c9f-c2bc-403f-9aa0-3d8853600241">https://github.com/user-attachments/assets/dd571c9f-c2bc-403f-9aa0-3d8853600241"
/>

### [Remove plugin name from
header]cozystack/kubeapps@ffc0b02

We always use flux though

<img width="386" alt="Screenshot 2025-06-10 at 1 55 39"
src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fcozystack%2Fcozystack%2Fpull%2F%3Ca+href%3D"https://github.com/user-attachments/assets/df6f52b5-82ab-4e7a-a973-2a82eb38ebfb">https://github.com/user-attachments/assets/df6f52b5-82ab-4e7a-a973-2a82eb38ebfb"
/>

### [Fix switching context from app
view](cozystack/kubeapps@d89e721)

Fixes the error message while swtiching tenant from the application view

```
An error occurred while fetching the application: Unable to get installed package.
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added new configuration options for API request rate limits in the
dashboard settings.

- **Style**
- Updated dashboard appearance to hide version information and specific
label elements.

- **Chores**
- Updated internal references to the latest version of the dashboard
source code.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Andrei Kvapil (kvaps) added a commit that referenced this pull request Jun 16, 2025
- [dashboard] Cumulative update (#1042)
- [dashboard] Remove dependency on linsting secrets (#1066)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant