Skip to content

Commit

Permalink
Added rhel_host example
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Jan 21, 2025
1 parent 4a44245 commit 4715cb7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 22 deletions.
22 changes: 0 additions & 22 deletions data/resources/k8s_cluster/reporters/acm/example.json

This file was deleted.

3 changes: 3 additions & 0 deletions data/resources/rhel_host/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource_type: rhel_host
resource_reporters:
- HBI
12 changes: 12 additions & 0 deletions data/resources/rhel_host/reporters/hbi/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
resource_type: rhel_host
reporter_name: hbi
namespace: hbi # this is the name of the field of the resource that contains this reporter's data
# relation_properties:
# - relation: is_fedramp
# expr: {{ .acm.fedramp }}
# subject: user:*
# - relation: has_addon_strimzi
# expr: {{ "strimzi" in .acm.addons }}
# subject: plan:{{.acm.subscription.plan}}

23 changes: 23 additions & 0 deletions data/resources/rhel_host/reporters/hbi/hbi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"reporter_type": {
"type": "string",
"enum": [
"HBI"
]
},
"console_href": { "type": "string", "format": "uri" },
"api_href": { "type": "string", "format": "uri" },
"local_resource_id": { "type": "string" },
"reporter_version": { "type": "string" }
},
"required": [
"reporter_type",
"console_href",
"api_href",
"local_resource_id",
"reporter_version"
]
}
Empty file.

0 comments on commit 4715cb7

Please sign in to comment.