Bug 2106366 - ProjectHelmChartRepository form doesn't allow the user to make a difference between name and displayname
Summary: ProjectHelmChartRepository form doesn't allow the user to make a difference b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: Debsmita Santra
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-12 13:21 UTC by Christoph Jerolimov
Modified: 2023-01-17 19:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 19:52:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
helm-chart-repo-form.mp4 (490.56 KB, video/mp4)
2022-07-12 13:26 UTC, Christoph Jerolimov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11852 0 None Merged Bug 2106366, Bug 2106377: Use displayname for PHCR in the catalog page 2022-07-25 16:55:14 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:52:47 UTC

Description Christoph Jerolimov 2022-07-12 13:21:09 UTC
Description of problem:
The new ProjectHelmChartRepository has a form field "Chart repository name" with the helptext "A display name for the Helm Chart repository."

But doesn't allow the user to enter a human-readable name. When entering "IBM Charts" the error shows that it must match a Kubernetes resource name.

Version-Release number of selected component (if applicable):
4.11

How reproducible:
Always

Steps to Reproduce:
1. Switch to Developer Perspective
2. Navigate to Add > "Helm Chart repositories"
3. Enter "IBM Charts" as "Chart repository name"

(and if this is fixed https://raw.githubusercontent.com/IBM/charts/master/repo/community/index.yaml as URL)

Actual results:
"Chart repository name" shows an validation error:
"Name must consist of lower-case letters, numbers and hyphens. It must start with a letter and end with a letter or number."

When switching to the YAML output you can see that the "Chart repository name" input is used as `metadata.name` as well as `spec.name`.

`spec.name` is defined in the ProjectHelmChartRepository CRD as: "Optional associated human readable repository name, it can be used by UI for displaying purposes"

Expected results:
Instead of one input field, I would expect (or suggest) to show two input fields.

1. "Name" (required)
   helpText: "Unique resource name for the Helm Chart repository."

2. "Display name" (optional)
   helpText: "A display name for the Helm Chart repository."

The first field should only update `metadata.name`, and the second one `spec.name`.

Additional info:

Comment 1 Christoph Jerolimov 2022-07-12 13:26:24 UTC
Created attachment 1896358 [details]
helm-chart-repo-form.mp4

Comment 2 Christoph Jerolimov 2022-07-27 08:43:04 UTC
Verified on 4.12.0-0.nightly-2022-07-25-055755

Comment 5 errata-xmlrpc 2023-01-17 19:52:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7399


Note You need to log in before you can comment on or make changes to this bug.