-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasource.tf
55 lines (47 loc) · 1.3 KB
/
datasource.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
data "oci_identity_availability_domains" "ads" {
compartment_id = var.compartment_ocid
}
data "oci_containerengine_node_pool_option" "node_pool_options" {
node_pool_option_id = oci_containerengine_cluster.px_oci_containerengine_cluster.id
}
data "oci_core_services" "core_services" {
filter {
name = "name"
values = [ "All LHR Services In Oracle Services Network" ]
}
}
data "oci_core_instances" "oke_instances" {
#Required
compartment_id = var.compartment_ocid
state = "RUNNING"
filter {
name = "display_name"
values = [ "^oke" ]
regex = true
}
depends_on = [
oci_containerengine_node_pool.px_oci_create_node_pool
]
}
data "oci_containerengine_clusters" "px_cluster" {
#Required
compartment_id = var.compartment_ocid
#Optional
name = var.cluster_name
state = ["ACTIVE"]
depends_on = [
oci_containerengine_cluster.px_oci_containerengine_cluster
]
}
data "oci_containerengine_cluster_kube_config" "px_kubeconfig" {
#Required
cluster_id = "${oci_containerengine_cluster.px_oci_containerengine_cluster.id}"
depends_on = [
oci_containerengine_node_pool.px_oci_create_node_pool
]
}
#data "kubectl_server_version" "current" {
# depends_on = [
# data.oci_containerengine_cluster_kube_config.px_kubeconfig
# ]
#}