Skip to content

Commit

Permalink
Introduce quarkus-kubevirt (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Jan 5, 2024
1 parent 6f7071e commit da92c22
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 @@ -52,6 +52,7 @@ terraform-scripts/quarkus-jpastreamer.tf @quarkiverse/qua
terraform-scripts/quarkus-jsch.tf @quarkiverse/quarkiverse-jsch
terraform-scripts/quarkus-kafka-streams-processor.tf @quarkiverse/quarkiverse-kafka-streams-processor
terraform-scripts/quarkus-kerberos.tf @quarkiverse/quarkiverse-kerberos
terraform-scripts/quarkus-kubevirt.tf @quarkiverse/quarkiverse-kubevirt
terraform-scripts/quarkus-langchain4j.tf @quarkiverse/quarkiverse-langchain4j
terraform-scripts/quarkus-logging-cloudwatch.tf @quarkiverse/quarkiverse-logging-cloudwatch
terraform-scripts/quarkus-logging-kafka.tf @quarkiverse/quarkiverse-logging-kafka
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-kubevirt.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_kubevirt" {
name = "quarkus-kubevirt"
description = "A client and CLI for KubeVirt"
homepage_url = "https://kubevirt.io/"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "kubevirt", "kubernetes"]
}

# Create team
resource "github_team" "quarkus_kubevirt" {
name = "quarkiverse-kubevirt"
description = "kubevirt 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_kubevirt" {
team_id = github_team.quarkus_kubevirt.id
repository = github_repository.quarkus_kubevirt.name
permission = "maintain"
}

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

0 comments on commit da92c22

Please sign in to comment.