Bug 1466664 - oc patch dc reports dc changed even if no changes made
Summary: oc patch dc reports dc changed even if no changes made
Keywords:
Status: CLOSED DUPLICATE of bug 1466671
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Derek Carr
QA Contact: DeShuai Ma
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-30 08:04 UTC by Marko Myllynen
Modified: 2017-07-02 08:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-30 18:07:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1267454 0 medium CLOSED It's better to show additional prompt when 'oc patch' non-existing fields of resource 2021-02-22 00:41:40 UTC

Internal Links: 1267454

Description Marko Myllynen 2017-06-30 08:04:35 UTC
Description of problem:
When running something like

oc patch dc registry-console -p '{"spec":{"template":{"spec":{"nodeSelector":{"role":"infra"}}}}}'

several times in a row, oc always informs '"registry-console" patched' even though no changes were made.

Comment 1 Xingxing Xia 2017-06-30 10:49:05 UTC
Please check if patched field's name/level is correct, seems it should be "selector" rather than "nodeSelector"
See https://bugzilla.redhat.com/show_bug.cgi?id=1409225#c3

Comment 2 Fabiano Franz 2017-06-30 18:07:23 UTC

*** This bug has been marked as a duplicate of bug 1466671 ***


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