Build and Push / build (push) Successful in 1m45s
## What - Closes #1 ## Why - Migrating from GitHub to Gitea ## Mood <img width="200" src="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExdHc5MnJ2N2RpazVsYW1uZXBtZjJreGtmdDQ0cDM2M2R2bXMxZmh6YSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/lsJCkIKV6AT28/giphy.gif" /> Reviewed-on: #2
91 lines
2.3 KiB
Terraform
91 lines
2.3 KiB
Terraform
variable "kubeconfig_path" {
|
|
description = "Path to kubeconfig file"
|
|
type = string
|
|
default = "~/.kube/config"
|
|
}
|
|
|
|
variable "kubeconfig_context" {
|
|
description = "Kubernetes context to use"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "namespace" {
|
|
description = "Kubernetes namespace"
|
|
type = string
|
|
default = "default"
|
|
}
|
|
|
|
variable "image" {
|
|
description = "Docker image for the app (e.g. registry.example.com/shell-whats:latest)"
|
|
type = string
|
|
}
|
|
|
|
variable "replicas" {
|
|
description = "Number of pod replicas"
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "service_type" {
|
|
description = "Kubernetes service type (ClusterIP, NodePort, LoadBalancer)"
|
|
type = string
|
|
default = "ClusterIP"
|
|
}
|
|
|
|
# ── App secrets (sensitive) ───────────────────────────────────────────────────
|
|
|
|
variable "whatsapp_token" {
|
|
description = "Meta WhatsApp Cloud API access token"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "anthropic_api_key" {
|
|
description = "Anthropic API key"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "chatwoot_api_key" {
|
|
description = "Chatwoot API access token"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
# ── App config ────────────────────────────────────────────────────────────────
|
|
|
|
variable "wa_phone_number_id" {
|
|
description = "Meta WhatsApp Phone Number ID"
|
|
type = string
|
|
}
|
|
|
|
variable "verify_token" {
|
|
description = "Webhook verify token (self-defined, must match Meta dashboard)"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "chatwoot_url" {
|
|
description = "Chatwoot base URL (e.g. https://chatwoot.example.com)"
|
|
type = string
|
|
}
|
|
|
|
variable "chatwoot_inbox_id" {
|
|
description = "Chatwoot inbox ID for WhatsApp conversations"
|
|
type = string
|
|
}
|
|
|
|
variable "chatwoot_account_id" {
|
|
description = "Chatwoot account ID"
|
|
type = string
|
|
}
|
|
|
|
variable "meta_proxy_url" {
|
|
description = "Optional HTTP proxy for outbound Meta API calls (e.g. http://user:pass@host:port). Leave empty to connect directly."
|
|
type = string
|
|
sensitive = true
|
|
default = ""
|
|
}
|
|
|