Enable kubectl logs po

This commit is contained in:
Rita Zhang
2017-12-11 20:25:54 -08:00
parent 57996b44c4
commit e0c9da5d95
5 changed files with 123 additions and 3 deletions

View File

@@ -139,6 +139,11 @@ func (p *HyperProvider) GetPod(namespace, name string) (*v1.Pod, error) {
return nil, nil
}
// GetPodLogs returns the logs of a pod by name.
func (p *HyperProvider) GetPodLogs(namespace, name string) (string, error) {
return "", nil
}
// GetPodStatus returns the status of a pod by name that is running inside hyper.sh
// returns nil if a pod by that name is not found.
func (p *HyperProvider) GetPodStatus(namespace, name string) (*v1.PodStatus, error) {
@@ -224,6 +229,12 @@ func (p *HyperProvider) NodeConditions() []v1.NodeCondition {
}
// NodeAddresses returns a list of addresses for the node status
// within Kuberentes.
func (p *HyperProvider) NodeAddresses() []v1.NodeAddress {
return nil
}
// OperatingSystem returns the operating system for this provider.
// This is a noop to default to Linux for now.
func (p *HyperProvider) OperatingSystem() string {