Skip to content

Commit

Permalink
Introduce quarkus-argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 8, 2024
1 parent 5fcf5a1 commit b42aeea
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-argocd.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit b42aeea

Please sign in to comment.