From b42aeea65c1a9b755a26c143c4a5f790a9cf79c4 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 8 Aug 2024 10:35:07 -0300 Subject: [PATCH] Introduce quarkus-argocd --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-argocd.tf | 36 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 terraform-scripts/quarkus-argocd.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 88088dd..77d9ee2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -6,6 +6,7 @@ terraform-scripts/quarkus-antora.tf @quarkiverse/qua terraform-scripts/quarkus-angus-mail.tf @quarkiverse/quarkiverse-angus-mail terraform-scripts/quarkus-apistax.tf @quarkiverse/quarkiverse-apistax terraform-scripts/quarkus-arangodb-client.tf @quarkiverse/quarkiverse-arangodb-client +terraform-scripts/quarkus-argocd.tf @quarkiverse/quarkiverse-argocd terraform-scripts/quarkus-artemis.tf @quarkiverse/quarkiverse-artemis terraform-scripts/quarkus-arthas.tf @quarkiverse/quarkiverse-arthas terraform-scripts/quarkus-asyncapi.tf @quarkiverse/quarkiverse-asyncapi diff --git a/terraform-scripts/quarkus-argocd.tf b/terraform-scripts/quarkus-argocd.tf new file mode 100644 index 0000000..3b1d745 --- /dev/null +++ b/terraform-scripts/quarkus-argocd.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_argocd" { + name = "quarkus-argocd" + description = "An ArgoCD extension for Quarkus" + homepage_url = "https://docs.quarkiverse.io/quarkus-argocd/dev" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension"] +} + +# Create team +resource "github_team" "quarkus_argocd" { + name = "quarkiverse-argocd" + description = "argocd 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_argocd" { + team_id = github_team.quarkus_argocd.id + repository = github_repository.quarkus_argocd.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_argocd" { + for_each = { for tm in ["iocanel", "aureamunoz", "cmoulliard"] : tm => tm } + team_id = github_team.quarkus_argocd.id + username = each.value + role = "maintainer" +}