Skip to content

Commit 5c64cf1

Browse files
authored
feat: Removed the logic that creates a virtual private endpoint for COS since it was clashing with the one created by VPC clusters and breaking cluster communication from worker nodes to the COS direct endpoint. When upgrading from an older version, you will see the expected destroy of the virtual private endpoint for COS and its associated reserved ID (#954)
1 parent a12a0be commit 5c64cf1

File tree

5 files changed

+13
-57
lines changed

5 files changed

+13
-57
lines changed

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2023-12-15T18:26:42Z",
6+
"generated_at": "2023-12-16T18:26:42Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

patterns/mixed/config.tf

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -160,20 +160,9 @@ locals {
160160
##############################################################################
161161
# VPE
162162
##############################################################################
163-
virtual_private_endpoints = [{
164-
service_name = "cos"
165-
service_type = "cloud-object-storage"
166-
resource_group = "${var.prefix}-service-rg"
167-
vpcs = [
168-
# Create VPE for each VPC in VPE tier
169-
for network in module.dynamic_values.vpc_list :
170-
{
171-
name = network
172-
subnets = ["vpe-zone-1", "vpe-zone-2", "vpe-zone-3"]
173-
security_group_name = "${network}-vpe-sg"
174-
}
175-
]
176-
}]
163+
# By default, do not create any VPEs
164+
virtual_private_endpoints = []
165+
177166
##############################################################################
178167

179168
##############################################################################

patterns/roks/module/config.tf

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,20 +144,9 @@ locals {
144144
##############################################################################
145145
# VPE
146146
##############################################################################
147-
virtual_private_endpoints = [{
148-
service_name = "cos"
149-
service_type = "cloud-object-storage"
150-
resource_group = "${var.prefix}-service-rg"
151-
vpcs = [
152-
# Create VPE for each VPC in VPE tier
153-
for network in module.dynamic_values.vpc_list :
154-
{
155-
name = network
156-
subnets = ["vpe-zone-1", "vpe-zone-2", "vpe-zone-3"]
157-
security_group_name = "${network}-vpe-sg"
158-
}
159-
]
160-
}]
147+
# By default, do not create any VPEs
148+
virtual_private_endpoints = []
149+
161150
##############################################################################
162151

163152
##############################################################################

patterns/vpc/module/config.tf

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,9 @@ locals {
8383
##############################################################################
8484
# VPE
8585
##############################################################################
86-
virtual_private_endpoints = [{
87-
service_name = "cos"
88-
service_type = "cloud-object-storage"
89-
resource_group = "${var.prefix}-service-rg"
90-
vpcs = [
91-
# Create VPE for each VPC in VPE tier
92-
for network in module.dynamic_values.vpc_list :
93-
{
94-
name = network
95-
subnets = ["vpe-zone-1", "vpe-zone-2", "vpe-zone-3"]
96-
security_group_name = "${network}-vpe-sg"
97-
}
98-
]
99-
}]
86+
# By default, do not create any VPEs
87+
virtual_private_endpoints = []
88+
10089
##############################################################################
10190

10291
##############################################################################

patterns/vsi/module/config.tf

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,9 @@ locals {
120120
##############################################################################
121121
# VPE
122122
##############################################################################
123-
virtual_private_endpoints = [{
124-
service_name = "cos"
125-
service_type = "cloud-object-storage"
126-
resource_group = "${var.prefix}-service-rg"
127-
vpcs = [
128-
# Create VPE for each VPC in VPE tier
129-
for network in module.dynamic_values.vpc_list :
130-
{
131-
name = network
132-
subnets = ["vpe-zone-1", "vpe-zone-2", "vpe-zone-3"]
133-
security_group_name = "${network}-vpe-sg"
134-
}
135-
]
136-
}]
123+
# By default, do not create any VPEs
124+
virtual_private_endpoints = []
125+
137126
##############################################################################
138127

139128
##############################################################################

0 commit comments

Comments
 (0)