Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metadata field #343

Merged
merged 1 commit into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions pkg/devfile/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,16 @@ type DevfileMetadata struct {
// Optional devfile global memory limit
// +optional
GlobalMemoryLimit string `json:"globalMemoryLimit,omitempty"`

// Optional devfile project type
// +optional
ProjectType string `json:"projectType,omitempty"`

// Optional devfile language
// +optional
Language string `json:"language,omitempty"`

// Optional devfile website
// +optional
Website string `json:"website,omitempty"`
}
12 changes: 12 additions & 0 deletions schemas/latest/devfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,10 +1473,18 @@
"description": "Optional devfile icon",
"type": "string"
},
"language": {
"description": "Optional devfile language",
"type": "string"
},
"name": {
"description": "Optional devfile name",
"type": "string"
},
"projectType": {
"description": "Optional devfile project type",
"type": "string"
},
"tags": {
"description": "Optional devfile tags",
"type": "array",
Expand All @@ -1488,6 +1496,10 @@
"description": "Optional semver-compatible version",
"type": "string",
"pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
},
"website": {
"description": "Optional devfile website",
"type": "string"
}
},
"additionalProperties": true
Expand Down
15 changes: 15 additions & 0 deletions schemas/latest/ide-targeted/devfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -1630,11 +1630,21 @@
"type": "string",
"markdownDescription": "Optional devfile icon"
},
"language": {
"description": "Optional devfile language",
"type": "string",
"markdownDescription": "Optional devfile language"
},
"name": {
"description": "Optional devfile name",
"type": "string",
"markdownDescription": "Optional devfile name"
},
"projectType": {
"description": "Optional devfile project type",
"type": "string",
"markdownDescription": "Optional devfile project type"
},
"tags": {
"description": "Optional devfile tags",
"type": "array",
Expand All @@ -1648,6 +1658,11 @@
"type": "string",
"pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$",
"markdownDescription": "Optional semver-compatible version"
},
"website": {
"description": "Optional devfile website",
"type": "string",
"markdownDescription": "Optional devfile website"
}
},
"additionalProperties": true,
Expand Down