diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d94ad04..c40ac0c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -95,6 +95,7 @@ terraform-scripts/quarkus-rsocket.tf @quarkiverse/quark terraform-scripts/quarkus-sa-token.tf @quarkiverse/quarkiverse-sa-token terraform-scripts/quarkus-scala3.tf @quarkiverse/quarkiverse-scala terraform-scripts/quarkus-shardingsphere-jdbc.tf @quarkiverse/quarkiverse-shardingsphere-jdbc +terraform-scripts/quarkus-smallrye-opentracing.tf @quarkiverse/quarkiverse-smallrye-opentracing terraform-scripts/quarkus-sshd.tf @quarkiverse/quarkiverse-sshd terraform-scripts/quarkus-systemd-notify.tf @quarkiverse/quarkiverse-systemd-notify terraform-scripts/quarkus-tekton-client.tf @quarkiverse/quarkiverse-tekton-client diff --git a/terraform-scripts/quarkus-smallrye-opentracing.tf b/terraform-scripts/quarkus-smallrye-opentracing.tf new file mode 100644 index 0000000..fe832e7 --- /dev/null +++ b/terraform-scripts/quarkus-smallrye-opentracing.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_smallrye_opentracing" { + name = "quarkus-smallrye-opentracing" + description = "A MicroProfile-OpenTracing implementation" + homepage_url = "https://smallrye.io/" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "smallrye", "opentracing"] +} + +# Create team +resource "github_team" "quarkus_smallrye_opentracing" { + name = "quarkiverse-smallrye-opentracing" + description = "smallrye-opentracing team" + create_default_maintainer = false + privacy = "closed" + parent_team_id = data.github_team.quarkiverse_members.id +} + +# Add team to repository +resource "github_team_repository" "quarkus_smallrye_opentracing" { + team_id = github_team.quarkus_smallrye_opentracing.id + repository = github_repository.quarkus_smallrye_opentracing.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_smallrye_opentracing" { + for_each = { for tm in ["gsmet", "brunobat"] : tm => tm } + team_id = github_team.quarkus_smallrye_opentracing.id + username = each.value + role = "maintainer" +}