Bug 1312221 - api-version does not work for filter resource by api version
api-version does not work for filter resource by api version
Product: OpenShift Origin
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Fabiano Franz
Wei Sun
Depends On:
  Show dependency treegraph
Reported: 2016-02-26 02:08 EST by XiaochuanWang
Modified: 2016-05-31 11:41 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-05-31 11:41:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description XiaochuanWang 2016-02-26 02:08:04 EST
Description of problem:
Resource created with v1 should not be described using --api-version=v1beta3

Version-Release number of selected component (if applicable):
oc v1.1.3-282-gc423082
kubernetes v1.2.0-alpha.7-703-gbc4550d

How reproducible:

Steps to Reproduce:
1. Create resource with api version is v1
`oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/networking/list_for_pods.json`
2. Use --api-version to get resource svc
`oc describe svc test-service --api-version=v1beta3`

Actual results:
# oc describe svc test-service --api-version=v1beta3 
Name:			test-service
Namespace:		xiaocwan-t
Labels:			name=test-service
Selector:		name=test-pods
Type:			ClusterIP
Port:			http	27017/TCP
Session Affinity:	None
No events.

Expected results:
Need to pop-up error information friendly.
error: server does not support API version "v1beta3"

Additional info:
Comment 1 Fabiano Franz 2016-03-04 13:02:53 EST
Most likely --api-version is going to be deprecated. Marking this as UpcomingRelease while we follow the discussion upstream: https://github.com/kubernetes/kubernetes/issues/14895.

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