Use component name for param name if name parameter is omitted
In general, prototypes have a name param. To reduce duplication, use the component name for the name param if the name parameter is omitted. This will turn :
```
ks prototype use deployed-service guestbook-ui \
--name guestbook-ui \
--image alpinejay/dns-single-redis-guestbook:1.0 \
--type LoadBalancer
```
into
```
ks prototype use deployed-service guestbook-ui \
--image alpinejay/dns-single-redis-guestbook:1.0 \
--type LoadBalancer
```
as the `--name` parameter will be inferred. If the operator wishes the name to be different, they can supply the name parameter:
```
ks prototype use deployed-service guestbook-ui \
--name fancy-stuff \
--image alpinejay/dns-single-redis-guestbook:1.0 \
--type LoadBalancer
```
Signed-off-by:
bryanl <bryanliles@gmail.com>
Please register or sign in to comment