Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Add dynamicPlugins in Values schema.
Browse files Browse the repository at this point in the history
Signed-off-by: David Festal <dfestal@redhat.com>
  • Loading branch information
davidfestal committed Oct 24, 2023
1 parent 509c4a6 commit c7888ff
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
40 changes: 40 additions & 0 deletions charts/backstage/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,46 @@
"title": "Shorthand for users who do not want to specify a custom HOSTNAME. Used ONLY with the DEFAULT upstream.backstage.appConfig value and with OCP Route enabled.",
"type": "string"
},
"dynamic": {
"additionalProperties": false,
"properties": {
"includes": {
"default": [],
"items": {
"type": "string"
},
"title": "List of YAML files to include, each of which should contain a `plugins` array.",
"type": "array"
},
"plugins": {
"items": {
"properties": {
"disabled": {
"default": false,
"title": "Disable the plugin.",
"type": "boolean"
},
"package": {
"title": "Package specification of the dynamic plugin to install. It should be usable by the `npm pack` command.",
"type": "string"
},
"pluginConfig": {
"title": "Optional plugin-specific app-config YAML fragment.",
"type": "object"
}
},
"required": [
"package"
],
"type": "object"
},
"title": "List of dynamic plugins that should be installed in the backstage application.",
"type": "array"
}
},
"title": "Dynamic plugins configuration.",
"type": "object"
},
"host": {
"default": "",
"title": "Custom hostname shorthand, overrides `global.clusterRouterBase`, `upstream.ingress.host`, `route.host`, and url values in `upstream.backstage.appConfig`",
Expand Down
38 changes: 38 additions & 0 deletions charts/backstage/values.schema.tmpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,44 @@
"title": "Custom hostname shorthand, overrides `global.clusterRouterBase`, `upstream.ingress.host`, `route.host`, and url values in `upstream.backstage.appConfig`",
"type": "string",
"default": ""
},
"dynamic": {
"title": "Dynamic plugins configuration.",
"type": "object",
"additionalProperties": false,
"properties": {
"plugins": {
"title": "List of dynamic plugins that should be installed in the backstage application.",
"type": "array",
"items": {
"type": "object",
"properties": {
"package": {
"title": "Package specification of the dynamic plugin to install. It should be usable by the `npm pack` command.",
"type": "string"
},
"pluginConfig": {
"title": "Optional plugin-specific app-config YAML fragment.",
"type": "object"
},
"disabled": {
"title": "Disable the plugin.",
"type": "boolean",
"default": false
}
},
"required": ["package"]
}
},
"includes": {
"title": "List of YAML files to include, each of which should contain a `plugins` array.",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
}
}
},
Expand Down

0 comments on commit c7888ff

Please sign in to comment.