Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active February 4, 2020 06:15
Show Gist options
  • Select an option

  • Save ihcsim/a8a78cf054957343f97d159a62c2e2f7 to your computer and use it in GitHub Desktop.

Select an option

Save ihcsim/a8a78cf054957343f97d159a62c2e2f7 to your computer and use it in GitHub Desktop.
// GetExec gets the endpoint the runtime will serve the exec request from.
func (m *kubeGenericRuntimeManager) GetExec(id kubecontainer.ContainerID, cmd []string, stdin, stdout, stderr, tty bool) (*url.URL, error) {
// ...
resp, err := m.runtimeService.Exec(req)
if err != nil {
return nil, err
}
return url.Parse(resp.Url)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment