Skip to content

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

Merged
merged 9 commits into from
Mar 2, 2021

Conversation

ZhiHanZ
Copy link

@ZhiHanZ ZhiHanZ commented Mar 2, 2021

resolve #19

@ZhiHanZ ZhiHanZ requested a review from a team March 2, 2021 06:52
Copy link
Member

@mathetake mathetake left a 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?

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)
Copy link
Member

@mathetake mathetake Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@mathetake mathetake left a 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?

zhihanz added 2 commits March 2, 2021 19:24
Signed-off-by: zhihanz <[email protected]>
@ZhiHanZ
Copy link
Author

ZhiHanZ commented Mar 2, 2021

shall we add NAME column in getistio list command for convenience?
Created an issue on it

#28

Copy link
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZhiHanZ ZhiHanZ merged commit cc22fa9 into tetratelabs:main Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add name as a flag in getistio fetch
2 participants