variable "region" {
  description = "Alibaba Cloud region of the ACK cluster"
  type        = string
}

variable "cluster_name" {
  description = "ACK cluster name to attach the node pool to"
  type        = string
}

variable "instance_types" {
  description = "ACK worker instance types for the dedicated metrics-integration node pool"
  type        = list(string)
  default     = ["ecs.g6.xlarge"]
}

variable "system_disk_category" {
  description = "System disk category for the node pool workers"
  type        = string
  default     = "cloud_essd"
}

variable "system_disk_size" {
  description = "System disk size for the node pool workers, in GiB"
  type        = number
  default     = 120
}

variable "key_name" {
  description = "Optional ECS key pair name override. If empty, reuse the cluster key pair."
  type        = string
  default     = ""
}

variable "vswitch_ids" {
  description = "Optional ACK worker vSwitch overrides. If empty, reuse the cluster vSwitch list."
  type        = list(string)
  default     = []
}

variable "desired_size" {
  description = "Desired node count for the node pool"
  type        = number
  default     = 0
}

variable "min_size" {
  description = "Minimum autoscaling size for the node pool"
  type        = number
  default     = 0
}

variable "max_size" {
  description = "Maximum autoscaling size for the node pool"
  type        = number
  default     = 5
}
