File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ locals {
22
22
23
23
get_cluster_data = local. enabled ? (
24
24
local. need_cluster_kubernetes_version ||
25
+ local. suppress_bootstrap ||
25
26
local. associate_cluster_security_group ||
26
27
local. need_ssh_access_sg
27
28
) : false
Original file line number Diff line number Diff line change @@ -74,13 +74,6 @@ locals {
74
74
bootstrap_extra_args = length (var. bootstrap_additional_options ) == 0 ? " " : join (" " , var. bootstrap_additional_options )
75
75
after_cluster_joining_userdata = length (var. after_cluster_joining_userdata ) == 0 ? " " : join (" \n " , var. after_cluster_joining_userdata )
76
76
77
- /* It turns out we never need this, because we only use it when we are suppressing the EKS bootstrap,
78
- * and we only suppress the EKS bootstrap when we are running bootstrap.sh ourselves, which only happens
79
- * when we are running Amazon Linux 2 or Windows. This would only be used by a CUSTOM AMI,
80
- * but for a CUSTOM AMI, the user must provide the full userdata.
81
- *
82
- * Keeping this here for now in case we need it in the future.
83
-
84
77
cluster_endpoint = local.get_cluster_data ? data.aws_eks_cluster.this[0 ].endpoint : null
85
78
certificate_authority_data = local.get_cluster_data ? data.aws_eks_cluster.this[0 ].certificate_authority[0 ].data : null
86
79
cluster_name = local.get_cluster_data ? data.aws_eks_cluster.this[0 ].name : null
@@ -89,7 +82,6 @@ locals {
89
82
[for net in data . aws_eks_cluster . this [0 ]. kubernetes_network_config : net . service_ipv4_cidr if net . ip_family == " ipv4" ],
90
83
[for net in data . aws_eks_cluster . this [0 ]. kubernetes_network_config : net . service_ipv6_cidr if net . ip_family == " ipv6" ]
91
84
)... ) : null
92
- */
93
85
}
94
86
95
87
# If var.userdata_override_base64[0] is present then we use it rather than generating userdata
You can’t perform that action at this time.
0 commit comments