diff --git a/pkg/devfile/header.go b/pkg/devfile/header.go index d4fb6a1ee..108062a8c 100644 --- a/pkg/devfile/header.go +++ b/pkg/devfile/header.go @@ -30,4 +30,24 @@ type DevfileMetadata struct { // Map of implementation-dependant free-form YAML attributes. // +optional Attributes attributes.Attributes `json:"attributes,omitempty"` + + // Optional devfile display name + // +optional + DisplayName string `json:"displayName,omitempty"` + + // Optional devfile description + // +optional + Description string `json:"description,omitempty"` + + // Optional devfile tags + // +optional + Tags []string `json:"tags,omitempty"` + + // Optional devfile icon + // +optional + Icon string `json:"icon,omitempty"` + + // Optional devfile global memory limit + // +optional + GlobalMemoryLimit string `json:"globalMemoryLimit,omitempty"` } diff --git a/schemas/latest/devfile.json b/schemas/latest/devfile.json index 0b477355c..ecfc09439 100644 --- a/schemas/latest/devfile.json +++ b/schemas/latest/devfile.json @@ -1427,10 +1427,33 @@ "type": "object", "additionalProperties": true }, + "description": { + "description": "Optional devfile description", + "type": "string" + }, + "displayName": { + "description": "Optional devfile display name", + "type": "string" + }, + "globalMemoryLimit": { + "description": "Optional devfile global memory limit", + "type": "string" + }, + "icon": { + "description": "Optional devfile icon", + "type": "string" + }, "name": { "description": "Optional devfile name", "type": "string" }, + "tags": { + "description": "Optional devfile tags", + "type": "array", + "items": { + "type": "string" + } + }, "version": { "description": "Optional semver-compatible version", "type": "string", diff --git a/schemas/latest/ide-targeted/devfile.json b/schemas/latest/ide-targeted/devfile.json index 2a5291c75..b0f54016c 100644 --- a/schemas/latest/ide-targeted/devfile.json +++ b/schemas/latest/ide-targeted/devfile.json @@ -1580,11 +1580,39 @@ "additionalProperties": true, "markdownDescription": "Map of implementation-dependant free-form YAML attributes." }, + "description": { + "description": "Optional devfile description", + "type": "string", + "markdownDescription": "Optional devfile description" + }, + "displayName": { + "description": "Optional devfile display name", + "type": "string", + "markdownDescription": "Optional devfile display name" + }, + "globalMemoryLimit": { + "description": "Optional devfile global memory limit", + "type": "string", + "markdownDescription": "Optional devfile global memory limit" + }, + "icon": { + "description": "Optional devfile icon", + "type": "string", + "markdownDescription": "Optional devfile icon" + }, "name": { "description": "Optional devfile name", "type": "string", "markdownDescription": "Optional devfile name" }, + "tags": { + "description": "Optional devfile tags", + "type": "array", + "items": { + "type": "string" + }, + "markdownDescription": "Optional devfile tags" + }, "version": { "description": "Optional semver-compatible version", "type": "string",