-
Notifications
You must be signed in to change notification settings - Fork 212
/
module-utilities.tf
33 lines (28 loc) · 1.26 KB
/
module-utilities.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
# Copyright (c) 2017, 2023 Oracle Corporation and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
module "utilities" {
count = local.cluster_enabled && local.operator_enabled ? 1 : 0
source = "./modules/utilities"
region = var.region
# Cluster
await_node_readiness = var.await_node_readiness
expected_node_count = local.worker_count_expected
worker_pools = one(module.workers[*].worker_pools)
# Bastion/operator connection
ssh_private_key = sensitive(local.ssh_private_key)
bastion_host = local.bastion_public_ip
bastion_user = var.bastion_user
operator_host = local.operator_private_ip
operator_user = var.operator_user
# OCIR
ocir_email_address = var.ocir_email_address
ocir_secret_id = var.ocir_secret_id
ocir_secret_name = var.ocir_secret_name
ocir_secret_namespace = var.ocir_secret_namespace
ocir_username = var.ocir_username
# Worker pool draining
expected_drain_count = local.worker_drain_expected
worker_drain_delete_local_data = var.worker_drain_delete_local_data
worker_drain_ignore_daemonsets = var.worker_drain_ignore_daemonsets
worker_drain_timeout_seconds = var.worker_drain_timeout_seconds
}