expose: Use resource builder

Plus:
* Rename flag --service-name to --name
* Some refactoring
This commit is contained in:
kargakis
2015-05-13 14:14:44 +02:00
parent a76bdd9710
commit 30958f892d
6 changed files with 43 additions and 41 deletions

View File

@@ -615,6 +615,7 @@ _kubectl_expose()
flags+=("-h")
flags+=("--labels=")
two_word_flags+=("-l")
flags+=("--name=")
flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
@@ -624,7 +625,6 @@ _kubectl_expose()
flags+=("--protocol=")
flags+=("--public-ip=")
flags+=("--selector=")
flags+=("--service-name=")
flags+=("--target-port=")
flags+=("--template=")
two_word_flags+=("-t")