From 1a802ea067818b5cb3b8eec463307f92d03e755f Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 26 Jun 2024 12:17:08 -0300 Subject: [PATCH] Introduce quarkus-jmx --- .github/CODEOWNERS | 3 ++- terraform-scripts/quarkus-jmx.tf | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 terraform-scripts/quarkus-jmx.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 609c9b5..dc70c78 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -51,6 +51,7 @@ terraform-scripts/quarkus-jef.tf @quarkiverse/qua terraform-scripts/quarkus-jgit.tf @quarkiverse/quarkiverse-jgit terraform-scripts/quarkus-jgrapht.tf @quarkiverse/quarkiverse-jgrapht terraform-scripts/quarkus-jjwt-jackson.tf @quarkiverse/quarkiverse-jjwt-jackson +terraform-scripts/quarkus-jmx.tf @quarkiverse/quarkiverse-jmx terraform-scripts/quarkus-jnosql.tf @quarkiverse/quarkiverse-jnosql terraform-scripts/quarkus-jooq.tf @quarkiverse/quarkiverse-jooq terraform-scripts/quarkus-jpastreamer.tf @quarkiverse/quarkiverse-jpastreamer @@ -108,6 +109,7 @@ terraform-scripts/quarkus-reactive-mysql-pool-client @quarkiverse/qua terraform-scripts/quarkus-reactive-messaging-http.tf @quarkiverse/quarkiverse-reactive-messaging-http terraform-scripts/quarkus-reactive-messaging-nats-jetstream.tf @quarkiverse/quarkiverse-reactive-messaging-nats-jetstream terraform-scripts/quarkus-renarde.tf @quarkiverse/quarkiverse-renarde +terraform-scripts/quarkus-roq.tf @quarkiverse/quarkiverse-roq terraform-scripts/quarkus-rsocket.tf @quarkiverse/quarkiverse-rsocket terraform-scripts/quarkus-sa-token.tf @quarkiverse/quarkiverse-sa-token terraform-scripts/quarkus-scala3.tf @quarkiverse/quarkiverse-scala @@ -117,7 +119,6 @@ terraform-scripts/quarkus-shedlock.tf @quarkiverse/qua terraform-scripts/quarkus-smallrye-opentracing.tf @quarkiverse/quarkiverse-smallrye-opentracing terraform-scripts/quarkus-snappy.tf @quarkiverse/quarkiverse-snappy terraform-scripts/quarkus-sshd.tf @quarkiverse/quarkiverse-sshd -terraform-scripts/quarkus-roq.tf @quarkiverse/quarkiverse-roq terraform-scripts/quarkus-systemd-notify.tf @quarkiverse/quarkiverse-systemd-notify terraform-scripts/quarkus-tekton-client.tf @quarkiverse/quarkiverse-tekton-client terraform-scripts/quarkus-tika.tf @quarkiverse/quarkiverse-tika diff --git a/terraform-scripts/quarkus-jmx.tf b/terraform-scripts/quarkus-jmx.tf new file mode 100644 index 0000000..8bcb81a --- /dev/null +++ b/terraform-scripts/quarkus-jmx.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_jmx" { + name = "quarkus-jmx" + description = "Provide JMX Management Beans" + homepage_url = "https://docs.quarkiverse.io/quarkus-jmx/dev" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "jmx"] +} + +# Create team +resource "github_team" "quarkus_jmx" { + name = "quarkiverse-jmx" + description = "jmx 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_jmx" { + team_id = github_team.quarkus_jmx.id + repository = github_repository.quarkus_jmx.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_jmx" { + for_each = { for tm in ["d135-1r43"] : tm => tm } + team_id = github_team.quarkus_jmx.id + username = each.value + role = "maintainer" +}