Bug 1840591 - Duplicated warning info for --generator option
Summary: Duplicated warning info for --generator option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.6.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-27 09:44 UTC by Yanping Zhang
Modified: 2020-10-27 16:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:01:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 440 0 None closed Bug 1841005: fix new-app help to mention deployment and/or dc 2020-06-18 09:58:32 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:01:48 UTC

Description Yanping Zhang 2020-05-27 09:44:26 UTC
Description of problem:
When run "oc run" command with option "--generator", it prompts the info twice:
Flag --generator has been deprecated, has no effect and will be removed in the future.

Version-Release number of selected component (if applicable):
Client Version: 4.5.0-202005252037-e21eeff
Server Version: 4.5.0-0.nightly-2020-05-26-193830
Kubernetes Version: v1.18.2+9835af5


How reproducible:
Always

Steps to Reproduce:
1. Run "oc run" with "--generator" option:
# oc run mypod --image=quay.io/openshifttest/hello-openshift@sha256:aaea76ff622d2f8bcb32e538e7b3cd0ef6d291953f3e7c9f556c1ba5baf47e2e --requests=cpu=50m,memory=100Mi --limits=cpu=50m,memory=100Mi --generator=run-pod/v1
Flag --generator has been deprecated, has no effect and will be removed in the future.
Flag --generator has been deprecated, has no effect and will be removed in the future.

2.
3.

Actual results:
1. 

Expected results:
1. No need to show the info twice.

Additional info:

Comment 3 zhou ying 2020-06-19 09:37:56 UTC
[root@dhcp-140-138 ~]# oc run mypod --image=quay.io/openshifttest/hello-openshift@sha256:aaea76ff622d2f8bcb32e538e7b3cd0ef6d291953f3e7c9f556c1ba5baf47e2e --requests=cpu=50m,memory=100Mi --limits=cpu=50m,memory=100Mi --generator=run-pod/v1
Flag --generator has been deprecated, has no effect and will be removed in the future.
pod/mypod created
[root@dhcp-140-138 ~]# oc version 
Client Version: 4.6.0-202006181224-4f753f8

Comment 5 errata-xmlrpc 2020-10-27 16:01:47 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 (OpenShift Container Platform 4.6 GA Images), 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:4196


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