Bug 1467351 - Cannot add label to a Project object
Summary: Cannot add label to a Project object
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Juan Vallejo
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-03 13:25 UTC by Pavel Zagalsky
Modified: 2017-10-27 11:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-20 21:36:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Zagalsky 2017-07-03 13:25:46 UTC
Description of problem:
Failure attempting to add a label to a Project object

Version-Release number of selected component (if applicable):
Tested on 3.5

How reproducible:
Always


Steps to Reproduce:
1. Run :
oc label project <project_name> abc_sdfsdfsdf=value_fewert


Actual results:

The Project <project_name> is invalid: metadata.labels[abc_sdfsdfsdf]: Invalid value: "value_fewert": field is immutable, , try updating the namespace

Expected results:
The label should be added successfully

Additional info:

Comment 1 Juan Vallejo 2017-10-20 21:36:44 UTC
This is not a bug. To label a project, you label the "namespace" resource:

oc label ns <project_name> abc_sdfsdfsdf=value_fewert


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