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-open-feature #307

Merged
merged 1 commit into from
Oct 31, 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
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ terraform-scripts/quarkus-neo4j.tf @quarkiverse/qua
terraform-scripts/quarkus-ngrok.tf @quarkiverse/quarkiverse-ngrok
terraform-scripts/quarkus-oidc-proxy.tf @quarkiverse/quarkiverse-oidc-proxy
terraform-scripts/quarkus-omnifaces.tf @quarkiverse/quarkiverse-omnifaces
terraform-scripts/quarkus-open-feature.tf @quarkiverse/quarkiverse-open-feature
terraform-scripts/quarkus-openapi-generator.tf @quarkiverse/quarkiverse-openapi-generator
terraform-scripts/quarkus-opencv.tf @quarkiverse/quarkiverse-opencv
terraform-scripts/quarkus-openfga-client.tf @quarkiverse/quarkiverse-openfga-client
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-open-feature.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_open_feature" {
name = "quarkus-open-feature"
description = "Feature Flagging Standard"
homepage_url = "https://docs.quarkiverse.io/quarkus-open-feature/dev"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "feature-flag"]
}

# Create team
resource "github_team" "quarkus_open_feature" {
name = "quarkiverse-open-feature"
description = "open-feature 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_open_feature" {
team_id = github_team.quarkus_open_feature.id
repository = github_repository.quarkus_open_feature.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_open_feature" {
for_each = { for tm in ["rmanibus", "melloware"] : tm => tm }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@melloware hope you don't mind I added you here, because it's better than working alone :)

team_id = github_team.quarkus_open_feature.id
username = each.value
role = "maintainer"
}