-
Notifications
You must be signed in to change notification settings - Fork 215
/
module-cluster-addons.tf
28 lines (21 loc) · 1.01 KB
/
module-cluster-addons.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
# Copyright (c) 2017, 2024 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 "cluster-addons" {
count = local.cluster_enabled && lower(var.cluster_type) == "enhanced" ? 1 : 0
source = "./modules/cluster-addons"
operator_enabled = local.operator_enabled
cluster_addons = var.cluster_addons
cluster_addons_to_remove = var.cluster_addons_to_remove
cluster_id = coalesce(var.cluster_id, one(module.cluster[*].cluster_id))
kubernetes_version = var.kubernetes_version
# 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
}
# output "supported_addons" {
# description = "Supported cluster addons"
# value = var.output_detail ? try(one(module.cluster-addons[*].supported_addons), null) : null
# }