-
Notifications
You must be signed in to change notification settings - Fork 27
getistio fetch: add name flag in fetch #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we add NAME
column in getistio list
command for convenience?
src/istioctl/istioctl.go
Outdated
if len(name) != 0 { | ||
d, err := api.IstioDistributionFromString(name) | ||
if err != nil { | ||
return nil, fmt.Errorf("cannot parse given name to %s istio distribution", name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return nil, fmt.Errorf("cannot parse given name to %s istio distribution", name) | |
return nil, fmt.Errorf("cannot parse given name %s to istio distribution", name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do the same fix for https://github.com/tetratelabs/getistio/blob/ddc6cb8c3305eae74732fa7500fe5e64ed9bc59d/cmd/switch.go#L91 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we put istioctl.processFetchParams
in cmd/fetch.go
and make istioct.Fetch
accepting *api.IstioDistribution
to be better aligned with switch cmd?
Signed-off-by: zhihanz <[email protected]>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolve #19