generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathoutputs.tf
30 lines (25 loc) · 1.33 KB
/
outputs.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
## Copyright © 2020, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
output "cluster" {
value = {
id = oci_containerengine_cluster.oci_oke_cluster.id
kubernetes_version = oci_containerengine_cluster.oci_oke_cluster.kubernetes_version
name = oci_containerengine_cluster.oci_oke_cluster.name
}
}
output "node_pool" {
value = {
id = oci_containerengine_node_pool.oci_oke_node_pool.id
kubernetes_version = oci_containerengine_node_pool.oci_oke_node_pool.kubernetes_version
name = oci_containerengine_node_pool.oci_oke_node_pool.name
}
}
output "chosen_node_shape_and_image" {
value = {
image_id = element([for source in data.oci_containerengine_node_pool_option.oci_oke_node_pool_option.sources : source.image_id if length(regexall("Oracle-Linux-${var.node_linux_version}-20[0-9]*.*", source.source_name)) > 0], 0)
source_name = element([for source in data.oci_containerengine_node_pool_option.oci_oke_node_pool_option.sources : source.source_name if length(regexall("Oracle-Linux-${var.node_linux_version}-20[0-9]*.*", source.source_name)) > 0], 0)
}
}
output "KubeConfig" {
value = data.oci_containerengine_cluster_kube_config.KubeConfig.content
}