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

[RFE] Add deprecation warning on SRIOV chart in UI #11042

Closed
manuelbuil opened this issue May 10, 2024 · 13 comments · Fixed by #11279 or #11315
Closed

[RFE] Add deprecation warning on SRIOV chart in UI #11042

manuelbuil opened this issue May 10, 2024 · 13 comments · Fixed by #11279 or #11315
Assignees
Labels
kind/enhancement QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this QA/manual-test Indicates issue requires manually testing release-note size/1 Size Estimate 1 status/release-note-added
Milestone

Comments

@manuelbuil
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

SRIOV charts will no longer be updated in https://github.com/rancher/charts because their new home is https://github.com/suse-edge/charts. If a user wants to consume SRIOV chart, that user will need to include the new helm repo in Rancher. Currently, the chart is in sync in both repos.

For the v2.9 release, charts will continue to be in both helm repos. For the v2.10 release we expect the chart to not be available via Rancher default charts Therefore, it would be nice to add a deprecation warning in v2.9 so that users are aware of the situation and know what is the way forward.

Describe the solution you'd like
A clear and concise description of what you want to happen.

I would like to add a warning in the UI so that users picking SRIOV chart know that it is deprecated and that it will be removed in the v2.10 cycle

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@manuelbuil
Copy link
Author

@mgfritch FYI

@gaktive gaktive transferred this issue from rancher/rancher May 16, 2024
@github-actions github-actions bot added the QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this label May 16, 2024
@gaktive gaktive added this to the v2.9.0 milestone May 16, 2024
@gaktive
Copy link
Member

gaktive commented May 21, 2024

Proposed copy:

(With a Warning sign) This chart will no longer be updated and be removed in 2.10. Please migrate to https://github.com/suse-edge/charts. Check the migrating guide for more information [link]

This may require a corresponding ticket in https://github.com/rancher/docs but putting release-note on this to start. @btat what's the best way to proceed? @manuelbuil will have more details.

@manuelbuil
Copy link
Author

I have tested today and the upgrade is pretty painless if you use the same name to install the chart coming from the edge repo. As it does a helm upgrade behind the curtains, the new version of the chart points at the new chart:

azureuser@terraform-mbuil-vm1:~$ helm history sriov -n cattle-sriov-system
REVISION	UPDATED                 	STATUS    	CHART                               	APP VERSION	DESCRIPTION     
1       	Tue May 21 14:15:27 2024	superseded	sriov-103.1.0+up0.1.0               	1.2.0      	Install complete
2       	Tue May 21 15:09:25 2024	deployed  	sriov-network-operator-1.2.3+up0.1.0	1.2.0      	Upgrade complete
azureuser@terraform-mbuil-vm1:~$ helm history sriov-crd -n cattle-sriov-system
REVISION	UPDATED                 	STATUS    	CHART                    	APP VERSION	DESCRIPTION     
1       	Tue May 21 14:15:25 2024	superseded	sriov-crd-103.1.0+up0.1.0	           	Install complete
2       	Tue May 21 15:09:24 2024	deployed  	sriov-crd-1.2.3+up0.1.0  	           	Upgrade complete

@btat
Copy link

btat commented May 21, 2024

@gaktive @manuelbuil I created rancher/rancher-docs#1297 for the docs portion. We can move docs-specific discussion there.

@gaktive
Copy link
Member

gaktive commented May 29, 2024

Perhaps an annotation on the chart would help out here since having custom deprecation warnings for each chart will not be scalable. Assigning to @nwmac only to figure out a strategy but someone else can work on this.

@nwmac
Copy link
Member

nwmac commented May 29, 2024

@manuelbuil My suggestion would be:

Add support for a new chart annotation catalog.cattle.io/deprecated (similar to catalog.cattle.io/experimental).

When present, the UI will show that the chart is deprecated (this will be shown in the same place as we show 'Experimental' and would take precedence, so we only show one or the other).

When present, we would also show a deprecation notice on the chart details page.

@manuelbuil
Copy link
Author

@manuelbuil My suggestion would be:

Add support for a new chart annotation catalog.cattle.io/deprecated (similar to catalog.cattle.io/experimental).

When present, the UI will show that the chart is deprecated (this will be shown in the same place as we show 'Experimental' and would take precedence, so we only show one or the other).

When present, we would also show a deprecation notice on the chart details page.

Sounds like a good idea

@nwmac nwmac removed their assignment Jun 5, 2024
@gaktive
Copy link
Member

gaktive commented Jun 5, 2024

Dev will sync with @kwwii on some of the design to visualize a chart to not use.

This lives in Apps & Marketplace

@gaktive gaktive added the size/1 Size Estimate 1 label Jun 5, 2024
mgfritch added a commit to mgfritch/charts that referenced this issue Jun 6, 2024
Deprecate the sriov chart from the `rancher/charts` repo:
- Add helm chart deprecation warning
- Add rancher `catalog.cattle.io/deprecated` annotation

The replacement chart can be found here:
- https://github.com/suse-edge/charts

Issue: rancher/dashboard#11042
Signed-off-by: Michael Fritch <mfritch@suse.com>
mgfritch added a commit to mgfritch/charts that referenced this issue Jun 6, 2024
- Add helm chart deprecation warning
- Add rancher `catalog.cattle.io/deprecated` annotation
- Future chart updates can be found here:
  https://github.com/suse-edge/charts

Issue: rancher/dashboard#11042
Signed-off-by: Michael Fritch <mfritch@suse.com>
@mgfritch
Copy link

mgfritch commented Jun 6, 2024

Add support for a new chart annotation catalog.cattle.io/deprecated (similar to catalog.cattle.io/experimental).

I added this new annotation while deprecating rancher sriov chart (rancher/charts#4025). And I also set the helm deprecated chart field (https://helm.sh/docs/topics/charts/#deprecating-charts) with a message about the new chart location in the the NOTES.txt

However, I'm wondering if we really need to add the additional rancher catalog.cattle.io/deprecated annotation? Maybe the existing helm deprecated field from the Chart.yaml is enough?

cc @manuelbuil @nwmac

@momesgin momesgin self-assigned this Jun 6, 2024
@nwmac
Copy link
Member

nwmac commented Jun 11, 2024

@manuelbuil @mgfritch @momesgin Yes - good idea - we can read the deprecated flag off of the chart version, so no need for a custom annotation.

@nwmac nwmac added ember Ember UI Issue QA/manual-test Indicates issue requires manually testing and removed ember Ember UI Issue QA/manual-test Indicates issue requires manually testing labels Jun 12, 2024
@momesgin
Copy link
Member

momesgin commented Jun 13, 2024

@nwmac As I have discovered so far, once the deprecated field is set to true we don't display the chart on the charts list page, unless you put deprecated as a query in the url(e.g. /c/local/apps/charts?deprecated). We can show a deprecated badge on an extension card based on the deprecated field like here:

Image

But in the chart's details page we don't even make the request to get a deprecated chart's data, I'm not sure why exactly this happens, and it's not just Sriov, I also found another chart called Sysdig with the same situation.

Another concern that I have is about the proposed copy:

This chart will no longer be updated and be removed in 2.10. Please migrate to https://github.com/suse-edge/charts. Check the migrating guide for more information [link]

it's a very specific warning message for Sriov, but the UI should display a generic message for all deprecated charts with some dynamic fields like the chart's name, e.g. {{chartName}} will be deprecated.... Unless the UI can read the deprecation message from Chart.yaml, not sure about NOTES.txt that's been mentioned.

@nwmac
Copy link
Member

nwmac commented Jun 14, 2024

@momesgin Okay - so that logic for deprecated charts must be somewhere in the UI code - I'd suggest we always show deprecated charts - or maybe we need to check with @kwwii on having a checkbox for this.

That text is specific - the chart should include that in its readme - we will not use that text in the UI - we should only show a generic banner saying that the chart is deprecated.

@momesgin momesgin added the QA/manual-test Indicates issue requires manually testing label Jun 21, 2024
@yonasberhe23
Copy link
Contributor

e2e tests are sufficient. moving to done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this QA/manual-test Indicates issue requires manually testing release-note size/1 Size Estimate 1 status/release-note-added
Projects
None yet
8 participants