Files
kubernetes/pkg/kubectl
Kubernetes Submit Queue 56acf19e6d Merge pull request #57303 from niuzhenguo/url-check
Automatic merge from submit-queue (batch tested with PRs 57400, 57403, 57303). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Restrict url conditions when run kubectl create with --raw

**What this PR does / why we need it**:
Currently when run kubectl create with --raw, it will raise "--raw cannot read from a url " if the filename has prefix "http", which is not proper as we may have filenames like "httptest" or similar.

This PR restrict the URL check conditions.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #57370 

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-12-19 11:27:37 -08:00
..
2017-11-09 12:14:08 +01:00
2017-12-02 21:12:39 +08:00
2017-10-15 18:18:13 -07:00
2017-11-21 13:00:40 -08:00
2017-11-10 18:26:46 +01:00
2017-11-21 23:19:44 -08:00
2017-12-18 22:44:04 +01:00
2017-12-18 22:44:04 +01:00
2017-12-18 22:44:04 +01:00