Bug 1844909 - Duplicate key "version" in CRD
Summary: Duplicate key "version" in CRD
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node Feature Discovery Operator
Version: 4.5
Hardware: All
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.5.0
Assignee: Zvonko Kosic
QA Contact: Walid A.
URL:
Whiteboard:
Depends On: 1844908
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-07 22:59 UTC by Carlos Eduardo Arango Gutierrez
Modified: 2020-07-13 17:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1844908
Environment:
Last Closed: 2020-07-13 17:43:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-nfd-operator pull 84 0 None closed Bug 1844909: [release-4.5] nfd.crd.yaml: remove duplicate version 2020-09-04 18:07:31 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:43:46 UTC

Description Carlos Eduardo Arango Gutierrez 2020-06-07 22:59:15 UTC
+++ This bug was initially created as a clone of Bug #1844908 +++

version: v1alpha1 is defined twice, in https://github.com/openshift/cluster-nfd-operator/blob/release-4.5/manifests/olm-catalog/4.5/nfd.crd.yaml#L13 and https://github.com/openshift/cluster-nfd-operator/blob/release-4.5/manifests/olm-catalog/4.5/nfd.crd.yaml#L38 which is failing validation in brew.

Image build failed. Error in plugin orchestrate_build: {"x86_64": {"pin_operator_digest": "while constructing a mapping\n  in \"/tmp/tmpXBzS7p/cluster-nfd-operator-bundle/manifests/nfd.crd.yaml\", line 6, column 3\nfound duplicate key \"version\" with value \"v1alpha1\" (original value: \"v1alpha1\")\n  in \"/tmp/tmpXBzS7p/cluster-nfd-operator-bundle/manifests/nfd.crd.yaml\", line 38, column 3\n\nTo suppress this check see:\n    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys\n\nDuplicate keys will become and error in future releases, and are errors\nby default when using the new API.\n"}}. OSBS build id: cluster-nfd-operator-bundle-rhaos-45-rhel-7-7ffff-4

Failed brew build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=28602159

Comment 1 Carlos Eduardo Arango Gutierrez 2020-06-07 23:08:00 UTC
PF FIX Bug 1844909 : [release-4.5] nfd.crd.yaml: remove duplicate version #84 https://github.com/openshift/cluster-nfd-operator/pull/84

Comment 4 Carlos Eduardo Arango Gutierrez 2020-06-26 16:42:20 UTC
PR https://github.com/openshift/cluster-nfd-operator/pull/84 addressed this BUG has been merged

Comment 5 Walid A. 2020-06-29 01:52:54 UTC
Verifed that the extra line "version: v1alpha1" in L38 has been removed and is no longer found in:
https://github.com/openshift/cluster-nfd-operator/blob/release-4.5/manifests/olm-catalog/4.5/nfd.crd.yaml

Comment 6 errata-xmlrpc 2020-07-13 17:43:31 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, 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/RHBA-2020:2409


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