Merge pull request #9287 from brendandburns/kubectl

Add some XSRF protection to kubectl proxy.
This commit is contained in:
Abhi Shah
2015-06-12 13:51:08 -07:00
6 changed files with 285 additions and 6 deletions

View File

@@ -520,11 +520,16 @@ _kubectl_proxy()
flags_with_completion=()
flags_completion=()
flags+=("--accept-hosts=")
flags+=("--accept-paths=")
flags+=("--api-prefix=")
flags+=("--disable-filter")
flags+=("--help")
flags+=("-h")
flags+=("--port=")
two_word_flags+=("-p")
flags+=("--reject-methods=")
flags+=("--reject-paths=")
flags+=("--www=")
two_word_flags+=("-w")
flags+=("--www-prefix=")