# Variables for Service Mesh Module

variable "provider" {
  description = "Service mesh provider (istio, linkerd, kuma)"
  type        = string
  validation {
    condition     = contains(["istio", "linkerd", "kuma"], var.provider)
    error_message = "Service mesh provider must be one of: istio, linkerd, kuma"
  }
}

variable "clusters" {
  description = "Map of clusters to deploy service mesh to"
  type = map(object({
    endpoint   = string
    kubeconfig = string
  }))
}

variable "mTLS_enabled" {
  description = "Enable mutual TLS for service mesh"
  type        = bool
  default     = true
}

variable "tags" {
  description = "Tags to apply to resources"
  type        = map(string)
  default     = {}
}

