Skip to content

Conversation

@lava
Copy link
Member

@lava lava commented Jun 13, 2025

No description provided.

@lava lava requested a review from Copilot June 13, 2025 10:03
@github-actions
Copy link

Tip

Please add a changelog entry for this PR by clicking one of the links below.

The changelog entry will be pre-filled with information from this PR. You can edit the title and description as needed before committing.

You can also add a changelog entry manually by running ./changelog/add.py change|bugfix|feature on the command-line.

Type Description Link
🔄 Change Modifications to existing functionality Add Change
🐛 Bugfix Fixes for bugs or issues Add Bugfix
Feature New functionality or enhancements Add Feature

This comment is automatically updated when the PR is modified.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A complete example for deploying the Tenzir platform on GCP using Terraform.

  • Introduces a bootstrap module to set up networking, a GKE cluster, and an Artifact Registry.
  • Defines Kubernetes resources (Deployments, Services, PVCs) for Postgres, platform, gateway, and app.
  • Configures IAP protection, managed certificates, ingress rules, and exposes outputs.

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
examples/terraform/gcp/terraform.tfvars Example variable assignments for a GCP deployment
examples/terraform/gcp/inputs.tf Definitions for input variables with descriptions and flags
examples/terraform/gcp/outputs.tf Top-level Terraform outputs for service & deployment names
examples/terraform/gcp/modules/bootstrap/cluster.tf Bootstrap resources: VPC, subnetwork, GKE cluster, registry
examples/terraform/gcp/modules/bootstrap/outputs.tf Outputs from the bootstrap module (IDs, endpoints, registry)
examples/terraform/gcp/kubernetes.tf Kubernetes provider setup and secret for platform credentials
examples/terraform/gcp/kubernetes_postgres.tf Postgres persistent volumes, deployment, and service
examples/terraform/gcp/kubernetes_platform.tf Platform deployment, service, and backend config
examples/terraform/gcp/kubernetes_gateway.tf Websocket gateway deployment, service, and backend config
examples/terraform/gcp/kubernetes_app.tf App deployment, service, and backend config
examples/terraform/gcp/iap_custom_oauth_client.tf IAP brand, OAuth client, and secret setup
examples/terraform/gcp/iap.tf IAP ingress, managed certificates, and firewall rules
examples/terraform/gcp/data.tf Data sources for GKE cluster and client configuration
examples/terraform/gcp/README.md Instructions for performing a two-step Terraform deployment
Comments suppressed due to low confidence (1)

examples/terraform/gcp/iap.tf:3

  • The regex string in replace() includes literal slashes and delimiters; Terraform expects a plain regex (e.g., "^(https?|wss?)://"), so adjust the pattern to correctly strip the protocol prefix.
tenzir_platform_domain_without_protocol = replace(var.tenzir_platform_domain, "/^(https?|wss?):\\/\\//", "")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants