Skip to content

Commit

Permalink
Merge pull request kubernetes#610 from lavalamp/fix2
Browse files Browse the repository at this point in the history
Make kubecfg work for minions.
  • Loading branch information
brendandburns committed Jul 25, 2014
2 parents cb28f25 + f3b6090 commit 4372b7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kubecfg/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var storageToType = map[string]reflect.Type{
"pods": reflect.TypeOf(api.Pod{}),
"services": reflect.TypeOf(api.Service{}),
"replicationControllers": reflect.TypeOf(api.ReplicationController{}),
"minions": reflect.TypeOf(api.Minion{}),
}

// ToWireFormat takes input 'data' as either json or yaml, checks that it parses as the
Expand All @@ -47,7 +48,7 @@ func ToWireFormat(data []byte, storage string) ([]byte, error) {

func SupportedWireStorage() []string {
types := []string{}
for k, _ := range storageToType {
for k := range storageToType {
types = append(types, k)
}
return types
Expand Down

0 comments on commit 4372b7a

Please sign in to comment.