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:
@@ -393,6 +393,8 @@ runTests() {
|
||||
rm "${RESTMAPPER_ERROR_FILE}"
|
||||
# Post-condition: None
|
||||
|
||||
kubectl get "${kube_flags[@]}" --raw /version
|
||||
|
||||
###########################
|
||||
# POD creation / deletion #
|
||||
###########################
|
||||
|
Reference in New Issue
Block a user