forked from kube-hetzner/terraform-hcloud-kube-hetzner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
41 lines (35 loc) · 1.12 KB
/
data.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
data "github_release" "hetzner_ccm" {
count = var.hetzner_ccm_version == null ? 1 : 0
repository = "hcloud-cloud-controller-manager"
owner = "hetznercloud"
retrieve_by = "latest"
}
data "github_release" "hetzner_csi" {
count = var.hetzner_csi_version == null && !var.disable_hetzner_csi ? 1 : 0
repository = "csi-driver"
owner = "hetznercloud"
retrieve_by = "latest"
}
// github_release for kured
data "github_release" "kured" {
count = var.kured_version == null ? 1 : 0
repository = "kured"
owner = "weaveworks"
retrieve_by = "latest"
}
// github_release for kured
data "github_release" "calico" {
count = var.calico_version == null && var.cni_plugin == "calico" ? 1 : 0
repository = "calico"
owner = "projectcalico"
retrieve_by = "latest"
}
data "hcloud_load_balancer" "cluster" {
count = local.has_external_load_balancer ? 0 : 1
name = var.cluster_name
depends_on = [null_resource.kustomization]
}
data "hcloud_ssh_keys" "keys_by_selector" {
count = length(var.ssh_hcloud_key_label) > 0 ? 1 : 0
with_selector = var.ssh_hcloud_key_label
}