Bug 1840591

Summary: Duplicated warning info for --generator option
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: low Docs Contact:
Priority: low    
Version: 4.5CC: aos-bugs, jokerman, mfojtik
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:01:47 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 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