-
Notifications
You must be signed in to change notification settings - Fork 28
/
locals.tf
19 lines (16 loc) · 823 Bytes
/
locals.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
locals {
controller_name = "ebs-csi-controller"
daemonset_name = "ebs-csi-node"
csi_volume_tags = join(",", [for key, value in var.tags : "${key}=${value}"])
resizer_container = var.enable_volume_resizing ? [{
name = "csi-resizer",
image = "${var.csi_resizer_image}:${var.csi_resizer_version}"
}] : []
snapshot_container = var.enable_volume_snapshot ? [{
name = "csi-snapshotter",
image = "${var.csi_snapshotter_image}:${var.csi_snapshotter_version}"
}] : []
# backwards compatibility: use default value when value is an empty string
ebs_csi_driver_version = var.ebs_csi_driver_version == "" ? "v1.6.2" : var.ebs_csi_driver_version
ebs_csi_controller_image = var.ebs_csi_controller_image == "" ? "registry.k8s.io/provider-aws/aws-ebs-csi-driver" : var.ebs_csi_controller_image
}