Bug 2040782

Summary: Import YAML page blocks input with more then one generateName attribute
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Jaivardhan Kumar <jakumar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: low Docs Contact:
Priority: low    
Version: 4.10CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:39:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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