From 1bcb5d20a15279bfa391067f5b9aa81352792405 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 31 Oct 2024 08:44:42 -0300 Subject: [PATCH] Introduce quarkus-open-feature --- .github/CODEOWNERS | 1 + terraform-scripts/quarkus-open-feature.tf | 36 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 terraform-scripts/quarkus-open-feature.tf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 87aa13c..e9fa351 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -96,6 +96,7 @@ terraform-scripts/quarkus-neo4j.tf @quarkiverse/qua terraform-scripts/quarkus-ngrok.tf @quarkiverse/quarkiverse-ngrok terraform-scripts/quarkus-oidc-proxy.tf @quarkiverse/quarkiverse-oidc-proxy terraform-scripts/quarkus-omnifaces.tf @quarkiverse/quarkiverse-omnifaces +terraform-scripts/quarkus-open-feature.tf @quarkiverse/quarkiverse-open-feature terraform-scripts/quarkus-openapi-generator.tf @quarkiverse/quarkiverse-openapi-generator terraform-scripts/quarkus-opencv.tf @quarkiverse/quarkiverse-opencv terraform-scripts/quarkus-openfga-client.tf @quarkiverse/quarkiverse-openfga-client diff --git a/terraform-scripts/quarkus-open-feature.tf b/terraform-scripts/quarkus-open-feature.tf new file mode 100644 index 0000000..6fe44a8 --- /dev/null +++ b/terraform-scripts/quarkus-open-feature.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_open_feature" { + name = "quarkus-open-feature" + description = "Feature Flagging Standard" + homepage_url = "https://docs.quarkiverse.io/quarkus-open-feature/dev" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "feature-flag"] +} + +# Create team +resource "github_team" "quarkus_open_feature" { + name = "quarkiverse-open-feature" + description = "open-feature 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_open_feature" { + team_id = github_team.quarkus_open_feature.id + repository = github_repository.quarkus_open_feature.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_open_feature" { + for_each = { for tm in ["rmanibus", "melloware"] : tm => tm } + team_id = github_team.quarkus_open_feature.id + username = each.value + role = "maintainer" +}