Bug 1314267

Summary: [infrastructure_public_70]oc create secret --output-version doesn't validate the value
Product: OpenShift Container Platform Reporter: DeShuai Ma <dma>
Component: NodeAssignee: Derek Carr <decarr>
Status: CLOSED WONTFIX QA Contact: Qixuan Wang <qixuan.wang>
Severity: low Docs Contact:
Priority: medium    
Version: 3.2.0CC: aos-bugs, gblomqui, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-26 14:46:57 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:

Description DeShuai Ma 2016-03-03 10:15:17 UTC
Description of problem:
This bug is fork from upstream bug, create the bug to trace it in our ose.
Upstream bug: https://github.com/kubernetes/kubernetes/issues/19163

Flag: --output-version=" " of "kubectl create secret" doesn't validate the input parameter.

Version-Release number of selected component (if applicable):
openshift v3.1.1.908
kubernetes v1.2.0-alpha.7-703-gbc4550d
etcd 2.2.5

How reproducible:
Always

Steps to Reproduce:
[root@ip-172-18-4-166 ~]# oc create secret generic secret800 --from-literal=key1=b --output-version=
secret "secret800" created
[root@ip-172-18-4-166 ~]# oc create secret generic secret801 --from-literal=key1=b --output-version=v1
secret "secret801" created
[root@ip-172-18-4-166 ~]# oc create secret docker-registry secret803 --docker-server=https://hub.docker.com  --docker-username=xxx --docker-password=xxx --docker-email=xxx --output-version=@
secret "secret803" created
[root@ip-172-18-4-166 ~]# oc get secret|grep secret
secret800                  Opaque                                1         1m
secret801                  Opaque                                1         52s
secret803                  kubernetes.io/dockercfg               1         22s

Actual results:


Expected results:


Additional info:

Comment 1 Derek Carr 2016-03-04 14:46:07 UTC
The upstream issue for the same problem has been triaged as a p2 and next-candidate.  I think this bug should have similar priority.

Comment 2 Greg Blomquist 2019-06-26 14:46:57 UTC
Based on the upstream discussion, "--output-version" has been deprecated.  Closing as wontfix