Merge pull request #30445 from deads2k/get-raw

Automatic merge from submit-queue

add --raw for kubectl get

Adds a `--raw` option to `kubectl get` that allow you specify your URI, but use the transport built by `kubectl`.  This is especially useful when working with secured environments that require authentication and authorization to hit non-api endpoints.  For example, `kubect get --raw /metrics` or if you want to debug a watch with a view at the exact data `kubectl get --raw '/api/v1/namespaces/one/replicationcontrollers?watch=true'`.

@kubernetes/kubectl 
@fabianofranz fyi
This commit is contained in:
Kubernetes Submit Queue
2016-08-19 09:29:08 -07:00
committed by GitHub
2 changed files with 32 additions and 0 deletions

View File

@@ -393,6 +393,8 @@ runTests() {
rm "${RESTMAPPER_ERROR_FILE}"
# Post-condition: None
kubectl get "${kube_flags[@]}" --raw /version
###########################
# POD creation / deletion #
###########################