diff --git a/schemas/configuration/environment.json b/schemas/configuration/environment.json new file mode 100644 index 00000000..d5d99a2d --- /dev/null +++ b/schemas/configuration/environment.json @@ -0,0 +1,27 @@ +{ + "//playground": "https://rjsf-team.github.io/react-jsonschema-form/#eyJmb3JtRGF0YSI6eyJhcHBsaWNhdGlvblR5cGUiOiJIZWxtIENoYXJ0In0sInNjaGVtYSI6eyJ0aXRsZSI6IlVwbG9hZCBBcHBsaWNhdGlvbiBGaWxlIiwicHJvcGVydGllcyI6eyJuYW1lIjp7InR5cGUiOiJzdHJpbmciLCJ0aXRsZSI6IkdpdmUgeW91ciBhcHBsaWNhdGlvbiBmaWxlIGEgbmFtZSIsIngtcmpzZi1ncmlkLWFyZWEiOiI2In0sImFwcGxpY2F0aW9uVHlwZSI6eyJ0aXRsZSI6IlNlbGVjdCBhcHBsaWNhdGlvbiB0eXBlIiwiZW51bSI6WyJIZWxtIENoYXJ0IiwiS3ViZXJuZXRlcyBNYW5pZmVzdCIsIkRvY2tlciBDb21wb3NlIl0sImRlZmF1bHQiOiJIZWxtIENoYXJ0IiwieC1yanNmLWdyaWQtYXJlYSI6IjYifX0sImRlcGVuZGVuY2llcyI6eyJhcHBsaWNhdGlvblR5cGUiOnsib25lT2YiOlt7InByb3BlcnRpZXMiOnsiYXBwbGljYXRpb25UeXBlIjp7ImNvbnN0IjoiSGVsbSBDaGFydCJ9LCJ1cmwiOnsidHlwZSI6InN0cmluZyIsImZvcm1hdCI6InVyaSIsInRpdGxlIjoiVVJMIiwiZGVzY3JpcHRpb24iOiJyYXcgVVJMIG9mIHRoZSBhcHBsaWNhdGlvbiBmaWxlLCBleGFtcGxlOiBodHRwczovL3Jhdy5naXRodWIuY29tLy4uLiIsIngtcmpzZi1ncmlkLWFyZWEiOiIxMiJ9fSwicmVxdWlyZWQiOlsidXJsIl19LHsicHJvcGVydGllcyI6eyJhcHBsaWNhdGlvblR5cGUiOnsiY29uc3QiOiJLdWJlcm5ldGVzIE1hbmlmZXN0In19LCJv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3dzZSB0aGUgYXBwbGljYXRpb24gZmlsZSBmcm9tIHlvdXIgZmlsZSBzeXN0ZW0iLCJ4LXJqc2YtZ3JpZC1hcmVhIjoiMTIifX0sInJlcXVpcmVkIjpbImZpbGUiXX1dfV19fX0sInVpU2NoZW1hIjp7ImFwcGxpY2F0aW9uVHlwZSI6eyJ1aTp3aWRnZXQiOiJyYWRpbyJ9fSwidGhlbWUiOiJtYXRlcmlhbC11aS01IiwibGl2ZVNldHRpbmdzIjp7fX0=", + "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" +} \ No newline at end of file diff --git a/schemas/configuration/uiSchemaEnvironment.json b/schemas/configuration/uiSchemaEnvironment.json new file mode 100644 index 00000000..e53f8c7a --- /dev/null +++ b/schemas/configuration/uiSchemaEnvironment.json @@ -0,0 +1,10 @@ +{ + "organization": { + "ui:disabled": false + }, + "ui:order": [ + "organization", + "name", + "description" + ] +} \ No newline at end of file diff --git a/schemas/schemaProvider.go b/schemas/schemaProvider.go index c134bc31..d99b53f8 100644 --- a/schemas/schemaProvider.go +++ b/schemas/schemaProvider.go @@ -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", } } @@ -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", } }