qontract-reconcile 0.10.1rc983__py3-none-any.whl → 0.10.1rc985__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/RECORD +7 -7
- reconcile/utils/helm.py +4 -6
- reconcile/utils/terrascript_aws_client.py +34 -11
- {qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc985
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/RECORD
RENAMED
@@ -665,7 +665,7 @@ reconcile/utils/gitlab_api.py,sha256=WfhLhOp3-cOwgptiCNPhWja74Lo41ZIlJ6HFSWaIDRw
|
|
665
665
|
reconcile/utils/gpg.py,sha256=EKG7_fdMv8BMlV5yUdPiqoTx-KrzmVSEAl2sLkaKwWI,1123
|
666
666
|
reconcile/utils/gql.py,sha256=NqxosFCInLy_dF_fcXnRYcZgsThedSyv_I3U8k2SLMg,14161
|
667
667
|
reconcile/utils/grouping.py,sha256=vr9SFHZ7bqmHYrvYcEZt-Er3-yQYfAAdq5sHLZVmXPY,456
|
668
|
-
reconcile/utils/helm.py,sha256=
|
668
|
+
reconcile/utils/helm.py,sha256=hdNOVz1FkEZU3Iv46_aaulnh-c40_De1ou40pMSmBiw,3777
|
669
669
|
reconcile/utils/helpers.py,sha256=k9svgFFZG7H5FvHYY0g5jJyvgvh2UDZxf0Ib221teag,1179
|
670
670
|
reconcile/utils/imap_client.py,sha256=h8YDiCSCvroErhpH_-KGYI7Y2WU2Q2oSpuxDFbOkSbY,1989
|
671
671
|
reconcile/utils/instrumented_wrappers.py,sha256=eVwMoa6FCrYxLv3RML3WpZF9qKVfCTjMxphgVXG03OM,1073
|
@@ -710,7 +710,7 @@ reconcile/utils/state.py,sha256=a_EO5u7__Pqd0_E3MqzUttJ-0xRtuxcNx5oQi5WIahI,1639
|
|
710
710
|
reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
|
711
711
|
reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
|
712
712
|
reconcile/utils/terraform_client.py,sha256=tCDVrfmFCB6lGfGhJt13VRkHxGy7Psw88KIze0r-JLo,31787
|
713
|
-
reconcile/utils/terrascript_aws_client.py,sha256=
|
713
|
+
reconcile/utils/terrascript_aws_client.py,sha256=vVUpJZRInTHRZOWr3XFxEon5Q7CIaNt3jhT5eM39UQ8,278023
|
714
714
|
reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
|
715
715
|
reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
|
716
716
|
reconcile/utils/vault.py,sha256=9GSNHku8tw5KM2LKpZ1myWYDLtLGUJgpSnD0DxbzeO0,14956
|
@@ -851,8 +851,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
|
|
851
851
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
852
852
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
853
853
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
854
|
-
qontract_reconcile-0.10.
|
855
|
-
qontract_reconcile-0.10.
|
856
|
-
qontract_reconcile-0.10.
|
857
|
-
qontract_reconcile-0.10.
|
858
|
-
qontract_reconcile-0.10.
|
854
|
+
qontract_reconcile-0.10.1rc985.dist-info/METADATA,sha256=6LHjMZZMBaGEpwXw6RRgJTCc4uog6hygujeZ8nFtqV0,2262
|
855
|
+
qontract_reconcile-0.10.1rc985.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
856
|
+
qontract_reconcile-0.10.1rc985.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
857
|
+
qontract_reconcile-0.10.1rc985.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
858
|
+
qontract_reconcile-0.10.1rc985.dist-info/RECORD,,
|
reconcile/utils/helm.py
CHANGED
@@ -35,9 +35,7 @@ def do_template(
|
|
35
35
|
tempfile.NamedTemporaryFile(
|
36
36
|
mode="w+", encoding="locale"
|
37
37
|
) as repository_config_file,
|
38
|
-
tempfile.
|
39
|
-
mode="w+", encoding="locale"
|
40
|
-
) as repository_cache_file,
|
38
|
+
tempfile.TemporaryDirectory() as repository_cache_dir,
|
41
39
|
):
|
42
40
|
with open(
|
43
41
|
os.path.join(path, "Chart.yaml"), encoding="locale"
|
@@ -55,7 +53,7 @@ def do_template(
|
|
55
53
|
"--repository-config",
|
56
54
|
repository_config_file.name,
|
57
55
|
"--repository-cache",
|
58
|
-
|
56
|
+
repository_cache_dir,
|
59
57
|
]
|
60
58
|
run(cmd, capture_output=False, check=True)
|
61
59
|
cmd = [
|
@@ -66,7 +64,7 @@ def do_template(
|
|
66
64
|
"--repository-config",
|
67
65
|
repository_config_file.name,
|
68
66
|
"--repository-cache",
|
69
|
-
|
67
|
+
repository_cache_dir,
|
70
68
|
]
|
71
69
|
run(cmd, capture_output=False, check=True)
|
72
70
|
with tempfile.NamedTemporaryFile(
|
@@ -85,7 +83,7 @@ def do_template(
|
|
85
83
|
"--repository-config",
|
86
84
|
repository_config_file.name,
|
87
85
|
"--repository-cache",
|
88
|
-
|
86
|
+
repository_cache_dir,
|
89
87
|
]
|
90
88
|
result = run(cmd, capture_output=True, check=True)
|
91
89
|
except CalledProcessError as e:
|
@@ -1196,16 +1196,16 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
|
|
1196
1196
|
self.add_resource(infra_account_name, tf_resource)
|
1197
1197
|
|
1198
1198
|
def populate_vpc_requests(
|
1199
|
-
self, vpc_requests: Iterable[VPCRequest],
|
1199
|
+
self, vpc_requests: Iterable[VPCRequest], vpc_module_version: str
|
1200
1200
|
) -> None:
|
1201
1201
|
for request in vpc_requests:
|
1202
1202
|
# skiping deleted requests
|
1203
1203
|
if request.delete:
|
1204
1204
|
continue
|
1205
1205
|
# The default values here come from infra repo's module configuration
|
1206
|
-
|
1206
|
+
vpc_module_values = {
|
1207
1207
|
"source": "terraform-aws-modules/vpc/aws",
|
1208
|
-
"version":
|
1208
|
+
"version": vpc_module_version,
|
1209
1209
|
"name": request.identifier,
|
1210
1210
|
"cidr": request.cidr_block.network_address,
|
1211
1211
|
"private_subnet_tags": {"kubernetes.io/role/internal-elb": "1"},
|
@@ -1218,29 +1218,52 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
|
|
1218
1218
|
}
|
1219
1219
|
|
1220
1220
|
if request.subnets and request.subnets.public:
|
1221
|
-
|
1221
|
+
vpc_module_values["public_subnets"] = request.subnets.public
|
1222
1222
|
if request.subnets and request.subnets.private:
|
1223
|
-
|
1223
|
+
vpc_module_values["private_subnets"] = request.subnets.private
|
1224
1224
|
if request.subnets and request.subnets.availability_zones:
|
1225
|
-
|
1225
|
+
vpc_module_values["azs"] = request.subnets.availability_zones
|
1226
1226
|
|
1227
1227
|
# We only want to enable nat_gateway if we have public and private subnets
|
1228
1228
|
if request.subnets and request.subnets.public and request.subnets.private:
|
1229
|
-
|
1229
|
+
vpc_module_values["enable_nat_gateway"] = True
|
1230
1230
|
|
1231
1231
|
aws_account = request.account.name
|
1232
|
-
|
1233
|
-
self.add_resource(aws_account,
|
1232
|
+
vpc_module = Module(request.identifier, **vpc_module_values)
|
1233
|
+
self.add_resource(aws_account, vpc_module)
|
1234
|
+
|
1235
|
+
# vpc_endpoint
|
1236
|
+
vpc_endpoint_values = {
|
1237
|
+
"source": "terraform-aws-modules/vpc/aws//modules/vpc-endpoints",
|
1238
|
+
"version": vpc_module_version,
|
1239
|
+
"vpc_id": vpc_module.vpc_id,
|
1240
|
+
"endpoints": {
|
1241
|
+
"s3": {
|
1242
|
+
"service": "s3",
|
1243
|
+
"serivce_type": "Gateway",
|
1244
|
+
"tags": {
|
1245
|
+
"managed_by_integration": self.integration,
|
1246
|
+
"Name": f"{request.identifier}--vpce-s3",
|
1247
|
+
"route_table_ids": vpc_module.vpc.private_route_table_ids,
|
1248
|
+
},
|
1249
|
+
}
|
1250
|
+
},
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
vpc_endpoint = Module(
|
1254
|
+
f"{request.identifier}-endpoint", **vpc_endpoint_values
|
1255
|
+
)
|
1256
|
+
self.add_resource(aws_account, vpc_endpoint)
|
1234
1257
|
|
1235
1258
|
# The outputs for module are only working with this sintaxe
|
1236
1259
|
vpc_id_output = Output(
|
1237
|
-
f"{request.identifier}-vpc_id", value=f"${{{
|
1260
|
+
f"{request.identifier}-vpc_id", value=f"${{{vpc_module.vpc_id}}}"
|
1238
1261
|
)
|
1239
1262
|
self.add_resource(aws_account, vpc_id_output)
|
1240
1263
|
|
1241
1264
|
vpc_cidr_block_output = Output(
|
1242
1265
|
f"{request.identifier}-vpc_cidr_block",
|
1243
|
-
value=f"${{{
|
1266
|
+
value=f"${{{vpc_module.vpc_cidr_block}}}",
|
1244
1267
|
)
|
1245
1268
|
self.add_resource(aws_account, vpc_cidr_block_output)
|
1246
1269
|
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc983.dist-info → qontract_reconcile-0.10.1rc985.dist-info}/top_level.txt
RENAMED
File without changes
|