qontract-reconcile 0.10.1rc870__py3-none-any.whl → 0.10.1rc872__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.1rc870.dist-info → qontract_reconcile-0.10.1rc872.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc870.dist-info → qontract_reconcile-0.10.1rc872.dist-info}/RECORD +8 -8
- reconcile/external_resources/factories.py +11 -0
- reconcile/gql_definitions/common/aws_vpc_requests.py +6 -0
- reconcile/gql_definitions/fragments/aws_vpc_request.py +8 -0
- {qontract_reconcile-0.10.1rc870.dist-info → qontract_reconcile-0.10.1rc872.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc870.dist-info → qontract_reconcile-0.10.1rc872.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc870.dist-info → qontract_reconcile-0.10.1rc872.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc870.dist-info → qontract_reconcile-0.10.1rc872.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.1rc872
|
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.1rc870.dist-info → qontract_reconcile-0.10.1rc872.dist-info}/RECORD
RENAMED
@@ -183,7 +183,7 @@ reconcile/dynatrace_token_provider/integration.py,sha256=NZOwk6t5X8p5fUo2FNsBgGH
|
|
183
183
|
reconcile/dynatrace_token_provider/metrics.py,sha256=xiKkl8fTEBQaXJelGCPNTZhHAWdO1M3pCXNr_Tei63c,1285
|
184
184
|
reconcile/external_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
185
185
|
reconcile/external_resources/aws.py,sha256=JvjKaABy2Pg8u8Lq82Acv4zMvpE3_qGKes7OG-zlHOM,2956
|
186
|
-
reconcile/external_resources/factories.py,sha256=
|
186
|
+
reconcile/external_resources/factories.py,sha256=DXgaLxoO87zZ76VOpRpu2GeYGhsbfOnOx5mrzgo4Gf4,4767
|
187
187
|
reconcile/external_resources/integration.py,sha256=p07tnD4pww9QgFlHT18RRn929BL7zKzRHRvHQ_ETRAU,5113
|
188
188
|
reconcile/external_resources/integration_secrets_sync.py,sha256=cMEZhgCvABAMf-DWF051L6CRnJQdfbsISA_b1xuS940,1670
|
189
189
|
reconcile/external_resources/manager.py,sha256=d1YuCZWOnUV3nfZ0HJI-IIG5qef7eQ4ct7hSTXcFK4M,14576
|
@@ -240,7 +240,7 @@ reconcile/gql_definitions/common/app_interface_dms_settings.py,sha256=h-N7-XGpmH
|
|
240
240
|
reconcile/gql_definitions/common/app_interface_repo_settings.py,sha256=rud0rz9NIFF-h1fFdk3MnwGmx73rhwrn1taN_HefvyU,1754
|
241
241
|
reconcile/gql_definitions/common/app_interface_state_settings.py,sha256=VXIK0Hmyv6GTShI86IGkjxyHGwufqUBAh617XKUAKaI,2507
|
242
242
|
reconcile/gql_definitions/common/app_interface_vault_settings.py,sha256=w8quvdG0cSq71ZyJokPPp7MyMpoDb6-HLQ3o9JHVGRQ,1771
|
243
|
-
reconcile/gql_definitions/common/aws_vpc_requests.py,sha256=
|
243
|
+
reconcile/gql_definitions/common/aws_vpc_requests.py,sha256=2lpyy-QSfHPSTvV_zbnqzqUoFzVNl-CJDmoqd_zVSX4,2366
|
244
244
|
reconcile/gql_definitions/common/aws_vpcs.py,sha256=Dss9dQ3xagnz3Ltg1e9mtG2PAmQGBbUzKCmmzvuN28s,1892
|
245
245
|
reconcile/gql_definitions/common/clusters.py,sha256=lIBA_wgwOTdcQgkFJ7EU23e9mlln-7WgstB_2psxZA4,21624
|
246
246
|
reconcile/gql_definitions/common/clusters_minimal.py,sha256=JYrJV_aStmryiiGKyiXhj47qpF_8KilCqy-d9CofBCo,4635
|
@@ -285,7 +285,7 @@ reconcile/gql_definitions/fragments/aws_account_managed.py,sha256=zXbux0Bb7QZ37f
|
|
285
285
|
reconcile/gql_definitions/fragments/aws_account_sso.py,sha256=ITR3PLz4Iq1SiWAoYGWPDuHJnAmTyZ0QQqs2Zsi8pxA,979
|
286
286
|
reconcile/gql_definitions/fragments/aws_infra_management_account.py,sha256=uAmALVRF2gBM3p_Dmez_ew6KVAtetamwOPkRIPZAlGc,1254
|
287
287
|
reconcile/gql_definitions/fragments/aws_vpc.py,sha256=T2egTwi2Rb0IRBBmsyag8xKpu_m6GbIAy80fhZNZwk8,1434
|
288
|
-
reconcile/gql_definitions/fragments/aws_vpc_request.py,sha256=
|
288
|
+
reconcile/gql_definitions/fragments/aws_vpc_request.py,sha256=o0qUsPrFXs8GAbtgMXQmIJxc1mw5skSIzCcidE857g8,2460
|
289
289
|
reconcile/gql_definitions/fragments/aws_vpc_request_subnet.py,sha256=qaTFT8cGzEslw51nUeb45Nfnv6kFxUm4CWrRR3xfBvA,760
|
290
290
|
reconcile/gql_definitions/fragments/deplopy_resources.py,sha256=0u3xYqL5NpMf149BJLfPhHqAOWu06aLULdNk_2Mulxg,1089
|
291
291
|
reconcile/gql_definitions/fragments/disable.py,sha256=Ojw98OSxcovrtmw_aAyhaVHhIa1MSUbBfKX4i2IpI74,715
|
@@ -837,8 +837,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
|
|
837
837
|
tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jrss,4941
|
838
838
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
839
839
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
840
|
-
qontract_reconcile-0.10.
|
841
|
-
qontract_reconcile-0.10.
|
842
|
-
qontract_reconcile-0.10.
|
843
|
-
qontract_reconcile-0.10.
|
844
|
-
qontract_reconcile-0.10.
|
840
|
+
qontract_reconcile-0.10.1rc872.dist-info/METADATA,sha256=p_PdfV2I8OB1Hjx60nEtkH_jBTfFpdxm194hKgak7q0,2273
|
841
|
+
qontract_reconcile-0.10.1rc872.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
842
|
+
qontract_reconcile-0.10.1rc872.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
843
|
+
qontract_reconcile-0.10.1rc872.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
844
|
+
qontract_reconcile-0.10.1rc872.dist-info/RECORD,,
|
@@ -9,6 +9,7 @@ from reconcile.external_resources.aws import (
|
|
9
9
|
AWSRdsFactory,
|
10
10
|
AWSResourceFactory,
|
11
11
|
)
|
12
|
+
from reconcile.external_resources.meta import QONTRACT_INTEGRATION
|
12
13
|
from reconcile.external_resources.model import (
|
13
14
|
ExternalResource,
|
14
15
|
ExternalResourceKey,
|
@@ -28,6 +29,14 @@ from reconcile.utils.secret_reader import SecretReaderBase
|
|
28
29
|
|
29
30
|
T = TypeVar("T")
|
30
31
|
|
32
|
+
AWS_DEFAULT_TAGS = [
|
33
|
+
{
|
34
|
+
"tags": {
|
35
|
+
"app": "app-sre-infra",
|
36
|
+
}
|
37
|
+
}
|
38
|
+
]
|
39
|
+
|
31
40
|
|
32
41
|
class ObjectFactory(Generic[T]):
|
33
42
|
def __init__(self) -> None:
|
@@ -102,6 +111,8 @@ class AWSExternalResourceFactory(ExternalResourceFactory):
|
|
102
111
|
def create_external_resource(self, spec: ExternalResourceSpec) -> ExternalResource:
|
103
112
|
f = self.resource_factories.get_factory(spec.provider)
|
104
113
|
data = f.resolve(spec)
|
114
|
+
data["tags"] = spec.tags(integration=QONTRACT_INTEGRATION)
|
115
|
+
data["default_tags"] = AWS_DEFAULT_TAGS
|
105
116
|
|
106
117
|
region = data.get("region")
|
107
118
|
if region:
|
@@ -27,6 +27,12 @@ class ConfiguredBaseModel(BaseModel):
|
|
27
27
|
extra=Extra.forbid
|
28
28
|
|
29
29
|
|
30
|
+
class DeletionApprovalV1(ConfiguredBaseModel):
|
31
|
+
q_type: str = Field(..., alias="type")
|
32
|
+
name: str = Field(..., alias="name")
|
33
|
+
expiration: str = Field(..., alias="expiration")
|
34
|
+
|
35
|
+
|
30
36
|
class AWSAccountV1(ConfiguredBaseModel):
|
31
37
|
name: str = Field(..., alias="name")
|
32
38
|
uid: str = Field(..., alias="uid")
|
@@ -36,6 +42,8 @@ class AWSAccountV1(ConfiguredBaseModel):
|
|
36
42
|
resources_default_region: str = Field(..., alias="resourcesDefaultRegion")
|
37
43
|
provider_version: str = Field(..., alias="providerVersion")
|
38
44
|
terraform_state: Optional[TerraformState] = Field(..., alias="terraformState")
|
45
|
+
enable_deletion: Optional[bool] = Field(..., alias="enableDeletion")
|
46
|
+
deletion_approvals: Optional[list[DeletionApprovalV1]] = Field(..., alias="deletionApprovals")
|
39
47
|
|
40
48
|
|
41
49
|
class NetworkV1(ConfiguredBaseModel):
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc870.dist-info → qontract_reconcile-0.10.1rc872.dist-info}/top_level.txt
RENAMED
File without changes
|