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

Add a New() for Kubelet. #335

Merged
merged 1 commit into from
Jul 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add a New() for Kubelet.
This will make it easier to add new fields that need to be initialized. Also refactors tests to ease making fake Kubelets.
  • Loading branch information
vmarmol committed Jul 2, 2014
commit e29ff512fc1ede6ab3e94e50ae71471135410f6b
4 changes: 4 additions & 0 deletions pkg/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ type CadvisorInterface interface {
MachineInfo() (*info.MachineInfo, error)
}

func New() *Kubelet {
return &Kubelet{}
}

// The main kubelet implementation
type Kubelet struct {
Hostname string
Expand Down
Loading