make componenetstatus root scoped

This commit is contained in:
Chao Xu 2015-10-14 21:47:51 -07:00
parent dc685dfee6
commit 262825f13d
2 changed files with 4 additions and 3 deletions

View File

@ -77,6 +77,7 @@ func init() {
"Minion",
"Namespace",
"PersistentVolume",
"ComponentStatus",
)
// these kinds should be excluded from the list of resources

View File

@ -90,21 +90,21 @@ func testComponentStatusData() *api.ComponentStatusList {
Conditions: []api.ComponentCondition{
{Type: api.ComponentHealthy, Status: api.ConditionTrue, Message: "ok", Error: "nil"},
},
ObjectMeta: api.ObjectMeta{Name: "servergood", Namespace: "test"},
ObjectMeta: api.ObjectMeta{Name: "servergood"},
}
bad := api.ComponentStatus{
Conditions: []api.ComponentCondition{
{Type: api.ComponentHealthy, Status: api.ConditionFalse, Message: "", Error: "bad status: 500"},
},
ObjectMeta: api.ObjectMeta{Name: "serverbad", Namespace: "test"},
ObjectMeta: api.ObjectMeta{Name: "serverbad"},
}
unknown := api.ComponentStatus{
Conditions: []api.ComponentCondition{
{Type: api.ComponentHealthy, Status: api.ConditionUnknown, Message: "", Error: "fizzbuzz error"},
},
ObjectMeta: api.ObjectMeta{Name: "serverunknown", Namespace: "test"},
ObjectMeta: api.ObjectMeta{Name: "serverunknown"},
}
return &api.ComponentStatusList{