-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce quarkus-authzed-client.tf (#91)
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |