feat: Open Policy Agent module (#1740) (#4441)

* feat: Open Policy Agent module (#1740)

* Format documentation

* Fix typo, `ropa` -> `rego`

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Update presets for OPA module

* Add extra space to OPA module symbol

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
AppleTheGolden
2022-10-15 18:15:33 +02:00
committed by GitHub
parent 186d99e623
commit 865e68da3a
12 changed files with 278 additions and 0 deletions
+68
View File
@@ -982,6 +982,25 @@
}
]
},
"opa": {
"default": {
"detect_extensions": [
"rego"
],
"detect_files": [],
"detect_folders": [],
"disabled": false,
"format": "via [$symbol($version )]($style)",
"style": "bold blue",
"symbol": "🪖 ",
"version_format": "v${raw}"
},
"allOf": [
{
"$ref": "#/definitions/OpaConfig"
}
]
},
"openstack": {
"default": {
"disabled": false,
@@ -3864,6 +3883,55 @@
},
"additionalProperties": false
},
"OpaConfig": {
"type": "object",
"properties": {
"format": {
"default": "via [$symbol($version )]($style)",
"type": "string"
},
"version_format": {
"default": "v${raw}",
"type": "string"
},
"symbol": {
"default": "🪖 ",
"type": "string"
},
"style": {
"default": "bold blue",
"type": "string"
},
"disabled": {
"default": false,
"type": "boolean"
},
"detect_extensions": {
"default": [
"rego"
],
"type": "array",
"items": {
"type": "string"
}
},
"detect_files": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"detect_folders": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"OspConfig": {
"type": "object",
"properties": {