mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
API Updates
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user