mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 13:42:02 +00:00
Rename JSONBase -> TypeMeta in preparation for v1beta3
Will make subsequent refactor much easier
This commit is contained in:
@@ -55,7 +55,7 @@ func (r *MinionRegistry) Insert(minion string) error {
|
||||
r.Lock()
|
||||
defer r.Unlock()
|
||||
r.Minion = minion
|
||||
r.Minions.Items = append(r.Minions.Items, api.Minion{JSONBase: api.JSONBase{ID: minion}})
|
||||
r.Minions.Items = append(r.Minions.Items, api.Minion{TypeMeta: api.TypeMeta{ID: minion}})
|
||||
return r.Err
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ func (r *MinionRegistry) Delete(minion string) error {
|
||||
var newList []api.Minion
|
||||
for _, node := range r.Minions.Items {
|
||||
if node.ID != minion {
|
||||
newList = append(newList, api.Minion{JSONBase: api.JSONBase{ID: node.ID}})
|
||||
newList = append(newList, api.Minion{TypeMeta: api.TypeMeta{ID: node.ID}})
|
||||
}
|
||||
}
|
||||
r.Minions.Items = newList
|
||||
|
Reference in New Issue
Block a user