Skip to content

Commit

Permalink
Merge pull request #379 from senali-d/senali-d/environmentSchema
Browse files Browse the repository at this point in the history
Add new environment schema
  • Loading branch information
leecalcote authored Sep 30, 2023
2 parents 46e722c + ef53a0c commit 710505f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
27 changes: 27 additions & 0 deletions schemas/configuration/environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"//playground": "https://rjsf-team.github.io/react-jsonschema-form/#eyJmb3JtRGF0YSI6eyJhcHBsaWNhdGlvblR5cGUiOiJIZWxtIENoYXJ0In0sInNjaGVtYSI6eyJ0aXRsZSI6IlVwbG9hZCBBcHBsaWNhdGlvbiBGaWxlIiwicHJvcGVydGllcyI6eyJuYW1lIjp7InR5cGUiOiJzdHJpbmciLCJ0aXRsZSI6IkdpdmUgeW91ciBhcHBsaWNhdGlvbiBmaWxlIGEgbmFtZSIsIngtcmpzZi1ncmlkLWFyZWEiOiI2In0sImFwcGxpY2F0aW9uVHlwZSI6eyJ0aXRsZSI6IlNlbGVjdCBhcHBsaWNhdGlvbiB0eXBlIiwiZW51bSI6WyJIZWxtIENoYXJ0IiwiS3ViZXJuZXRlcyBNYW5pZmVzdCIsIkRvY2tlciBDb21wb3NlIl0sImRlZmF1bHQiOiJIZWxtIENoYXJ0IiwieC1yanNmLWdyaWQtYXJlYSI6IjYifX0sImRlcGVuZGVuY2llcyI6eyJhcHBsaWNhdGlvblR5cGUiOnsib25lT2YiOlt7InByb3BlcnRpZXMiOnsiYXBwbGljYXRpb25UeXBlIjp7ImNvbnN0IjoiSGVsbSBDaGFydCJ9LCJ1cmwiOnsidHlwZSI6InN0cmluZyIsImZvcm1hdCI6InVyaSIsInRpdGxlIjoiVVJMIiwiZGVzY3JpcHRpb24iOiJyYXcgVVJMIG9mIHRoZSBhcHBsaWNhdGlvbiBmaWxlLCBleGFtcGxlOiBodHRwczovL3Jhdy5naXRodWIuY29tLy4uLiIsIngtcmpzZi1ncmlkLWFyZWE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vcGVydGllcyI6eyJmaWxlIjp7InR5cGUiOiJzdHJpbmciLCJmb3JtYXQiOiJkYXRhLXVybCIsInRpdGxlIjoiRmlsZSBVcGxvYWQiLCJkZXNjcmlwdGlvbiI6IkJyb3dzZSB0aGUgYXBwbGljYXRpb24gZmlsZSBmcm9tIHlvdXIgZmlsZSBzeXN0ZW0iLCJ4LXJqc2YtZ3JpZC1hcmVhIjoiMTIifX0sInJlcXVpcmVkIjpbImZpbGUiXX1dfV19fX0sInVpU2NoZW1hIjp7ImFwcGxpY2F0aW9uVHlwZSI6eyJ1aTp3aWRnZXQiOiJyYWRpbyJ9fSwidGhlbWUiOiJtYXRlcmlhbC11aS01IiwibGl2ZVNldHRpbmdzIjp7fX0=",
"title": "Environment",
"properties": {
"description": {
"description": "Description of the Environment",
"format": "textarea",
"title": "Description",
"type": "string",
"x-rjsf-grid-area": "12"
},
"name": {
"description": "The name of Environment",
"title": "Name",
"type": "string",
"x-rjsf-grid-area": "12"
},
"organization": {
"type": "string",
"title": "Organization",
"enum": [],
"enumNames": [],
"x-rjsf-grid-area": "12"
}
},
"type": "object"
}
10 changes: 10 additions & 0 deletions schemas/configuration/uiSchemaEnvironment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"organization": {
"ui:disabled": false
},
"ui:order": [
"organization",
"name",
"description"
]
}
2 changes: 2 additions & 0 deletions schemas/schemaProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ func getSchemaMap() map[string]string {
"design": "configuration/designImport.json",
"publish": "configuration/publishCatalogItem.json",
"helmRepo": "connections/helmConnection/helmRepoConnection.json",
"environment": "configuration/environment.json",
}
}

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

Expand Down

0 comments on commit 710505f

Please sign in to comment.