Skip to content

Fix older versions in dashboard - #102

Merged
Marian Koreniuk (themoriarti) merged 1 commit into
mainfrom
fix-old-versions
Apr 26, 2024
Merged

Fix older versions in dashboard#102
Marian Koreniuk (themoriarti) merged 1 commit into
mainfrom
fix-old-versions

Conversation

@kvaps

Copy link
Copy Markdown
Member

Workaround for vmware-tanzu/kubeapps#7740

Signed-off-by: Andrei Kvapil kvapss@gmail.com

Workaround for vmware-tanzu/kubeapps#7740

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It looks like some kind of hard code, can we put the url generation into some variable?

@kvaps

Copy link
Copy Markdown
Member Author

Unfortunately no, because we generate static files which then go into image with cozystack.
We can do runtime generation, but from my perspective it's better to have less moving parts as possible :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

OK, so far we accept it.

Andrei Kvapil (kvaps) added a commit that referenced this pull request Jun 10, 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
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 -->
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.

2 participants