Skip to content

Commit

Permalink
Merge pull request #7 from junior/zero-seven-one
Browse files Browse the repository at this point in the history
Zero seven one
  • Loading branch information
junior authored Sep 21, 2022
2 parents 86cecae + 7103c84 commit de841a5
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.7.1
13 changes: 13 additions & 0 deletions examples/apigw-fn-subnet/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# OCI Provider
variable "tenancy_ocid" {}
variable "compartment_ocid" {}
variable "region" {}
variable "user_ocid" {
default = ""
}
variable "fingerprint" {
default = ""
}
variable "private_key_path" {
default = ""
}
2 changes: 2 additions & 0 deletions module-oci-networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

# File Version: 0.7.0

# Dependencies:
# - module-defaults.tf file
# - local.create_new_vcn
Expand Down
2 changes: 2 additions & 0 deletions module-oke-network-locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

# File Version: 0.7.1

# Dependencies:
# - module-oci-networking.tf file
# - module-defaults.tf file
Expand Down
7 changes: 7 additions & 0 deletions module-oke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

# File Version: 0.7.1

module "vault" {
source = "./modules/oci-vault-kms"

Expand Down Expand Up @@ -129,6 +131,7 @@ locals {
existent_oke_nodepool_id_for_autoscaler = var.existent_oke_nodepool_id_for_autoscaler_1
image_operating_system = var.image_operating_system_1
image_operating_system_version = var.image_operating_system_version_1
extra_initial_node_labels = var.extra_initial_node_labels_1
},
]
}
Expand Down Expand Up @@ -221,6 +224,10 @@ variable "node_pool_name_1" {
default = "pool1"
description = "Name of the node pool"
}
variable "extra_initial_node_labels_1" {
default = {}
description = "Extra initial node labels to be added to the node pool"
}
variable "num_pool_workers_1" {
default = 3
description = "The number of worker nodes in the node pool. If select Cluster Autoscaler, will assume the minimum number of nodes configured"
Expand Down
11 changes: 11 additions & 0 deletions modules/oke-node-pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

# File Version: 0.7.1

resource "oci_containerengine_node_pool" "oke_node_pool" {
cluster_id = var.oke_cluster_ocid
compartment_id = var.oke_cluster_compartment_ocid
Expand Down Expand Up @@ -55,6 +57,15 @@ resource "oci_containerengine_node_pool" "oke_node_pool" {
value = var.node_pool_name
}

dynamic "initial_node_labels" {
for_each = var.extra_initial_node_labels

content {
key = initial_node_labels.value.key
value = initial_node_labels.value.value
}
}

count = var.create_new_node_pool ? 1 : 0
}

Expand Down
4 changes: 4 additions & 0 deletions modules/oke-node-pool/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ variable "node_pool_name" {
default = "pool1"
description = "Name of the node pool"
}
variable "extra_initial_node_labels" {
default = {}
description = "Extra initial node labels to be added to the node pool"
}
variable "node_pool_min_nodes" {
default = 3
description = "The number of worker nodes in the node pool. If select Cluster Autoscaler, will assume the minimum number of nodes configured"
Expand Down

0 comments on commit de841a5

Please sign in to comment.