Merge pull request #610 from lavalamp/fix2

Make kubecfg work for minions.
pull/6/head
brendandburns 2014-07-24 21:49:25 -07:00
commit 4372b7a6f6
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ var storageToType = map[string]reflect.Type{
"pods": reflect.TypeOf(api.Pod{}), "pods": reflect.TypeOf(api.Pod{}),
"services": reflect.TypeOf(api.Service{}), "services": reflect.TypeOf(api.Service{}),
"replicationControllers": reflect.TypeOf(api.ReplicationController{}), "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 // ToWireFormat takes input 'data' as either json or yaml, checks that it parses as the
@ -47,7 +48,7 @@ func ToWireFormat(data []byte, storage string) ([]byte, error) {
func SupportedWireStorage() []string { func SupportedWireStorage() []string {
types := []string{} types := []string{}
for k, _ := range storageToType { for k := range storageToType {
types = append(types, k) types = append(types, k)
} }
return types return types