From 69e4acb3d90e10528f246432eb0df61f50ca3f5f Mon Sep 17 00:00:00 2001 From: Phillip Kruger Date: Tue, 16 Jul 2024 13:47:23 +1000 Subject: [PATCH] New JsonRPC repo Signed-off-by: Phillip Kruger --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-json-rpc.tf | 36 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 terraform-scripts/quarkus-json-rpc.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dc70c78..540a7ce 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -56,6 +56,7 @@ terraform-scripts/quarkus-jnosql.tf @quarkiverse/qua terraform-scripts/quarkus-jooq.tf @quarkiverse/quarkiverse-jooq terraform-scripts/quarkus-jpastreamer.tf @quarkiverse/quarkiverse-jpastreamer terraform-scripts/quarkus-jsch.tf @quarkiverse/quarkiverse-jsch +terraform-scripts/quarkus-json-rpc.tf @quarkiverse/quarkiverse-json-rpc terraform-scripts/quarkus-kafka-streams-processor.tf @quarkiverse/quarkiverse-kafka-streams-processor terraform-scripts/quarkus-kerberos.tf @quarkiverse/quarkiverse-kerberos terraform-scripts/quarkus-kiota.tf @quarkiverse/quarkiverse-kiota diff --git a/terraform-scripts/quarkus-json-rpc.tf b/terraform-scripts/quarkus-json-rpc.tf new file mode 100644 index 0000000..8ba59f4 --- /dev/null +++ b/terraform-scripts/quarkus-json-rpc.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_json_rpc" { + name = "quarkus-json-prc" + description = "JsonRPC over WebSocket services with Quarkus" + homepage_url = "https://docs.quarkiverse.io/quarkus-json-rpc/dev/" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "json-rpc", "websocket"] +} + +# Create team +resource "github_team" "quarkus_json_rpc" { + name = "quarkiverse-json-rpc" + description = "json-rpc 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_json_rpc" { + team_id = github_team.quarkus_json_rpc.id + repository = github_repository.quarkus_json_rpc.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_json_rpc" { + for_each = { for tm in ["phillip-kruger", "tecarter94"] : tm => tm } + team_id = github_team.quarkus_json_rpc.id + username = each.value + role = "maintainer" +}