Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce quarkus-kiota #204

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
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-kiota.tf @quarkiverse/quarkiverse-kiota
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
sparse-checkout: terraform-scripts

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

Expand Down
32 changes: 16 additions & 16 deletions terraform-scripts/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion terraform-scripts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ terraform {
}
}

required_version = "~> 1.6.0"
required_version = "~> 1.7.0"
}

provider "github" {}
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-kiota.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_kiota" {
name = "quarkus-kiota"
description = "Generate client SDKs using Kiota from OpenAPI descriptions"
homepage_url = "https://github.com/microsoft/kiota"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "kiota"]
}

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

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