Skip to content
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

Merged
merged 2 commits into from
Aug 1, 2019

Conversation

yskopets
Copy link
Contributor

@yskopets yskopets commented Jul 26, 2019

changes:

  • support get dataplanes for Control Plane installed outside k8s

@yskopets yskopets added this to the 0.1 milestone Jul 26, 2019
@yskopets yskopets force-pushed the feature/konvoyctl-get-dataplanes-standalone branch 2 times, most recently from 6c0b38c to 9c24fe8 Compare July 26, 2019 23:06
@yskopets yskopets force-pushed the feature/konvoyctl-add-standalone-control-plane branch from 79ef3aa to 39eda64 Compare July 27, 2019 09:09
@yskopets yskopets changed the base branch from feature/konvoyctl-add-standalone-control-plane to feature/add-unit-tests-for-konvoyctl-config-control-planes-add-k8s July 27, 2019 09:27
if err != nil {
return nil, errors.Wrapf(err, "Failed to parse API Server URL")
}
client := util_http.ClientWithBaseURL(&http.Client{}, baseURL)
Copy link
Contributor

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

Copy link
Contributor Author

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

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@yskopets yskopets force-pushed the feature/add-unit-tests-for-konvoyctl-config-control-planes-add-k8s branch 2 times, most recently from acebb61 to 8a16301 Compare August 1, 2019 19:24
@yskopets yskopets force-pushed the feature/konvoyctl-get-dataplanes-standalone branch from 6903d09 to e073a25 Compare August 1, 2019 19:58
@yskopets yskopets changed the base branch from feature/add-unit-tests-for-konvoyctl-config-control-planes-add-k8s to master August 1, 2019 19:58
@yskopets yskopets merged commit a4218ba into master Aug 1, 2019
@yskopets yskopets deleted the feature/konvoyctl-get-dataplanes-standalone branch August 13, 2019 22:24
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.

None yet

2 participants