Skip to content

Commit d2d6433

Browse files
committed
Add Monitoring team with Redfish exporter fork repo
We have maintained this fork for some time and use it in OpenStack deployments via Kayobe. Since it is not tied to Kayobe, just used with it, we add a new Monitoring team to own it. Membership mirrors the OpenStack team. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 50f93c3 commit d2d6433

5 files changed

Lines changed: 87 additions & 0 deletions

File tree

‎ansible/inventory/group_vars/all/source-repositories‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ community_files:
3232
* @stackhpc/batch
3333
kayobe: |
3434
* @stackhpc/kayobe
35+
monitoring: |
36+
* @stackhpc/monitoring
3537
openstack: |
3638
* @stackhpc/openstack
3739
platform: |
@@ -123,6 +125,14 @@ source_repositories:
123125
- codeowners:
124126
content: "{{ community_files.codeowners.kayobe }}"
125127
dest: ".github/CODEOWNERS"
128+
# Monitoring team
129+
redfish_exporter:
130+
repository_type: "single-branch"
131+
workflows: []
132+
community_files:
133+
- codeowners:
134+
content: "{{ community_files.codeowners.monitoring }}"
135+
dest: ".github/CODEOWNERS"
126136
# OpenStack team
127137
bifrost:
128138
synced_releases:

‎terraform/github/branches.tf‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,38 @@ resource "github_branch_protection" "kayobe_branch_protection_master" {
369369
}
370370
}
371371

372+
resource "github_branch_protection" "monitoring_branch_protection" {
373+
for_each = toset(var.repositories["Monitoring"])
374+
repository_id = data.github_repository.repositories[each.key].node_id
375+
376+
pattern = data.github_repository.repositories[each.key].default_branch
377+
require_conversation_resolution = true
378+
allows_deletions = false
379+
allows_force_pushes = false
380+
381+
required_pull_request_reviews {
382+
dismiss_stale_reviews = true
383+
require_code_owner_reviews = true
384+
required_approving_review_count = 1
385+
}
386+
387+
restrict_pushes {
388+
blocks_creations = false
389+
push_allowances = [
390+
resource.github_team.organisation_teams["Developers"].node_id
391+
]
392+
}
393+
394+
required_status_checks {
395+
contexts = lookup(var.required_status_checks, each.key, { "default" : [] }).default
396+
strict = false
397+
}
398+
399+
lifecycle {
400+
prevent_destroy = true
401+
}
402+
}
403+
372404
resource "github_branch_protection" "openstack_branch_protection_py_3-6" {
373405
for_each = toset(var.repositories["OpenStack"])
374406
repository_id = data.github_repository.repositories[each.key].node_id

‎terraform/github/teams.tf‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ resource "github_team_repository" "kayobe_repositories" {
4646
permission = "push"
4747
}
4848

49+
resource "github_team_repository" "monitoring_repositories" {
50+
for_each = toset(var.repositories["Monitoring"])
51+
team_id = resource.github_team.organisation_teams["Monitoring"].id
52+
repository = each.value
53+
permission = "push"
54+
}
55+
4956
resource "github_team_repository" "openstack_repositories" {
5057
for_each = toset(var.repositories["OpenStack"])
5158
team_id = resource.github_team.organisation_teams["OpenStack"].id

‎terraform/github/terraform.tfvars.json‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
"stackhpc-kayobe-config",
5757
"ansible-collection-kayobe-workflows"
5858
],
59+
"Monitoring": [
60+
"redfish_exporter"
61+
],
5962
"OpenStack": [
6063
"barbican",
6164
"bifrost",
@@ -237,6 +240,27 @@
237240
]
238241
}
239242
},
243+
"Monitoring": {
244+
"description": "Team responsible for monitoring development",
245+
"privacy": "closed",
246+
"users": {
247+
"maintainers": [
248+
"dougszumski",
249+
"jovial",
250+
"m-bull",
251+
"MurrayGroves"
252+
],
253+
"members": [
254+
"bbezak",
255+
"cityofships",
256+
"mnasiadka",
257+
"motehue",
258+
"priteau",
259+
"technowhizz",
260+
"stackhpc-ci"
261+
]
262+
}
263+
},
240264
"OpenStack": {
241265
"description": "Team responsible for OpenStack development",
242266
"privacy": "closed",
@@ -386,6 +410,11 @@
386410
"Build OpenStack admin guide"
387411
]
388412
},
413+
"redfish_exporter": {
414+
"default": [
415+
"build"
416+
]
417+
},
389418
"stackhpc-kayobe-config": {
390419
"default": [
391420
"Tox pep8 with Python 3.10",

‎terraform/github/variables.tf‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ variable "repositories" {
2323
"Ansible" = [],
2424
"Batch" = [],
2525
"Kayobe" = [],
26+
"Monitoring" = [],
2627
"OpenStack" = [],
2728
"Platform" = [],
2829
"ReleaseTrain" = [],
@@ -73,6 +74,14 @@ variable "teams" {
7374
members = [],
7475
}
7576
},
77+
"Monitoring" = {
78+
description = "Team responsible for monitoring development"
79+
privacy = "closed"
80+
users = {
81+
maintainers = [],
82+
members = [],
83+
}
84+
},
7685
"OpenStack" = {
7786
description = "Team responsible for OpenStack development"
7887
privacy = "closed"

0 commit comments

Comments
 (0)