1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

API Updates

This commit is contained in:
Darren Shepherd
2017-12-04 16:42:18 -07:00
parent 6106f4926c
commit 68600ed35d
17 changed files with 629 additions and 590 deletions

View File

@@ -16,6 +16,13 @@ func (s Status) ToInternal(data map[string]interface{}) {
}
func (s Status) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {
_, hasSpec := schema.ResourceFields["spec"]
_, hasStatus := schema.ResourceFields["status"]
if !hasSpec || !hasStatus {
return nil
}
schema.ResourceFields["state"] = types.Field{
CodeName: "State",
Type: "string",