Skip to content

Commit

Permalink
Introduce quarkus-authzed-client.tf (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Sep 20, 2022
1 parent a60eb6a commit 90b6eca
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
main.tf @quarkiverse/quarkiverse-owners
quarkus-apistax.tf @quarkiverse/quarkiverse-apistax
quarkus-amazon-alexa.tf @quarkiverse/quarkiverse-amazon-alexa
quarkus-amazon-services.tf @quarkiverse/quarkiverse-amazon-services
quarkus-azure-services.tf @quarkiverse/quarkiverse-azure-services
quarkus-apistax.tf @quarkiverse/quarkiverse-apistax
quarkus-artemis.tf @quarkiverse/quarkiverse-artemis
quarkus-arthas.tf @quarkiverse/quarkiverse-arthas
quarkus-authzed-client.tf @quarkiverse/quarkiverse-authzed-client
quarkus-azure-services.tf @quarkiverse/quarkiverse-azure-services
quarkus-cert-manager.tf @quarkiverse/quarkiverse-cert-manager
quarkus-config-extensions.tf @quarkiverse/quarkiverse-config-extensions
quarkus-cucumber.tf @quarkiverse/quarkiverse-cucumber
Expand Down
41 changes: 41 additions & 0 deletions quarkus-authzed-client.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Create repository
resource "github_repository" "quarkus_authzed_client" {
name = "quarkus-authzed-client"
description = "An extension for connecting to authzed instances from Quarkus applications"
homepage_url = "https://docs.authzed.com/reference/api"
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "authzed", "fga"]
lifecycle {
ignore_changes = [
# Workaround for integrations/terraform-provider-github#1037.
branches,
]
}
}

# Create team
resource "github_team" "quarkus_authzed_client" {
name = "quarkiverse-authzed-client"
description = "authzed-client 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_authzed_client" {
team_id = github_team.quarkus_authzed_client.id
repository = github_repository.quarkus_authzed_client.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_authzed_client" {
for_each = { for tm in ["iocanel"] : tm => tm }
team_id = github_team.quarkus_authzed_client.id
username = each.value
role = "maintainer"
}

0 comments on commit 90b6eca

Please sign in to comment.