Skip to content

Commit

Permalink
Add new workspace schema
Browse files Browse the repository at this point in the history
Signed-off-by: Senali <[email protected]>
  • Loading branch information
senali-d committed Oct 11, 2023
1 parent ea3c609 commit 10dc7a6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions schemas/configuration/uiSchemaWorkspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"organization": {
"ui:disabled": false,
"ui:widget": "select"
},
"ui:order": [
"organization",
"name",
"description"
]
}
31 changes: 31 additions & 0 deletions schemas/configuration/workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"//playground": "https://rjsf-team.github.io/react-jsonschema-form/#eyJmb3JtRGF0YSI6e30sInNjaGVtYSI6eyJ0aXRsZSI6IkVudmlyb25tZW50IiwicHJvcGVydGllcyI6eyJkZXNjcmlwdGlvbiI6eyJkZXNjcmlwdGlvbiI6IkRlc2NyaXB0aW9uIG9mIHRoZSBFbnZpcm9ubWVudCIsImZvcm1hdCI6InRleHRhcmVhIiwidGl0bGUiOiJEZXNjcmlwdGlvbiIsInR5cGUiOiJzdHJpbmciLCJ4LXJqc2YtZ3JpZC1hcmVhIjoiMTIifSwibmFtZSI6eyJkZXNjcmlwdGlvbiI6IlRoZSBuYW1lIG9mIEVudmlyb25tZW50IiwidGl0bGUiOiJOYW1lIiwidHlwZSI6InN0cmluZyIsIngtcmpzZi1ncmlkLWFyZWEiOiIxMiJ9LCJvcmdhbml6YXRpb24iOnsidHlwZSI6InN0cmluZyIsInRpdGxlIjoiT3JnYW5pemF0aW9uIiwiZW51bSI6WyIxMTExMjIiXSwiZW51bU5hbWVzIjpbXSwieC1yanNmLWdyaWQtYXJlYSI6IjEyIn19LCJ0eXBlIjoib2JqZWN0IiwicmVxdWlyZWQiOlsibmFtZSIsIm9yZ2FuaXphdGlvbiJdfSwidWlTY2hlbWEiOnsib3JnYW5pemF0aW9uIjp7InVpOmRpc2FibGVkIjpmYWxzZSwidWk6d2lkZ2V0Ijoic2VsZWN0In0sInVpOm9yZGVyIjpbIm9yZ2FuaXphdGlvbiIsIm5hbWUiLCJkZXNjcmlwdGlvbiJdfSwidGhlbWUiOiJkZWZhdWx0IiwibGl2ZVNldHRpbmdzIjp7InNob3dFcnJvckxpc3QiOiJ0b3AiLCJ2YWxpZGF0ZSI6ZmFsc2UsImRpc2FibGVkIjpmYWxzZSwibm9IdG1sNVZhbGlkYXRlIjpmYWxzZSwicmVhZG9ubHkiOmZhbHNlLCJvbWl0RXh0cmFEYXRhIjpmYWxzZSwibGl2ZU9taXQiOmZhbHNlLCJleHBlcmltZW50YWxfZGVmYXVsdEZvcm1TdGF0ZUJlaGF2aW9yIjp7ImFycmF5TWluSXRlbXMiOiJwb3B1bGF0ZSIsImVtcHR5T2JqZWN0RmllbGRzIjoicG9wdWxhdGVBbGxEZWZhdWx0cyJ9fX0=",
"title": "Workspace",
"properties": {
"description": {
"description": "Description of the Workspace",
"format": "textarea",
"title": "Description",
"type": "string",
"x-rjsf-grid-area": "12"
},
"name": {
"description": "The name of Workspace",
"title": "Name",
"type": "string",
"x-rjsf-grid-area": "12"
},
"organization": {
"type": "string",
"title": "Organization",
"enum": [],
"enumNames": [],
"x-rjsf-grid-area": "12"
}
},
"type": "object",
"required": [
"name",
"organization"
]
}
2 changes: 2 additions & 0 deletions schemas/schemaProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func getSchemaMap() map[string]string {
"publish": "configuration/publishCatalogItem.json",
"helmRepo": "connections/helmConnection/helmRepoConnection.json",
"environment": "configuration/environment.json",
"workspace": "configuration/workspace.json",
}
}

Expand All @@ -23,6 +24,7 @@ func getUiSchemaMap() map[string]string {
"publish": "configuration/uiSchemaPublishCatalogItem.json",
"helmRepo": "connections/helmConnection/uiHelmRepoConnection.json",
"environment": "configuration/uiSchemaEnvironment.json",
"workspace": "configuration/uiSchemaWorkspace.json",
}
}

Expand Down

0 comments on commit 10dc7a6

Please sign in to comment.