-
Notifications
You must be signed in to change notification settings - Fork 327
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
konvoyctl: support get dataplanes
for Control Plane installed outside k8s
#79
Conversation
6c0b38c
to
9c24fe8
Compare
79ef3aa
to
39eda64
Compare
if err != nil { | ||
return nil, errors.Wrapf(err, "Failed to parse API Server URL") | ||
} | ||
client := util_http.ClientWithBaseURL(&http.Client{}, baseURL) |
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.
HTTP Clients should be created with connection and socket timeouts. We don't want user to be stuck on the command when there is a problem with Control Plane API Server.\
https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779
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.
Fixed
}) | ||
}) | ||
|
||
type RoundTripperFunc func(*http.Request) (*http.Response, error) |
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.
Do we need it here?
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.
No, I will remove it.
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.
Fixed
acebb61
to
8a16301
Compare
6903d09
to
e073a25
Compare
changes:
get dataplanes
for Control Plane installed outside k8s