Bug 2040782 - Import YAML page blocks input with more then one generateName attribute
Summary: Import YAML page blocks input with more then one generateName attribute
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.10.0
Assignee: Jaivardhan Kumar
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-14 16:48 UTC by Christoph Jerolimov
Modified: 2022-03-10 16:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:39:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10849 0 None open Bug 2040782: Fix that import YAML page blocks input with more then one generateName attributes 2022-01-14 18:57:39 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:39:56 UTC

Description Christoph Jerolimov 2022-01-14 16:48:14 UTC
Description of problem:
As a user, I want to import multiple resources with a `generateName` so that I can reimport them multiple times. If I try to import more than one resource with a `generateName` attribute the UI doesn't allow that.

Version-Release number of selected component (if applicable):
4.10, doesn't tested older versions

How reproducible:
Always

Steps to Reproduce:
1. Navigate to the Import YAM page by clicking the + icon in the top right corner
2. Try to import this YAML for example:

apiVersion: primer.gitops.io/v1alpha1
kind: Export
metadata: 
  generateName: new-export-
spec: 
  method: 'download'
---
apiVersion: primer.gitops.io/v1alpha1
kind: Export
metadata: 
  generateName: new-export-
spec: 
  method: 'download'

3. Press create

Actual results:
An error message is shown:
  An error occurred
  Resources in the same namespace and API group must have unique names

Expected results:
The import should work similarly to the case where I use two different names.

Additional info:

Comment 3 Christoph Jerolimov 2022-01-20 13:39:35 UTC
Verified on 4.10.0-0.nightly-2022-01-20-082726

Comment 6 errata-xmlrpc 2022-03-10 16:39:45 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.10.3 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:0056


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