qontract-reconcile 0.10.1rc871__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc871
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
@@ -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=bLboXX5Dq0xN60mtDGNjCOLC6HlKofXMWQxVbRwMMwo,4485
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
@@ -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.1rc871.dist-info/METADATA,sha256=-LgSP8TnH7lS6H7ovYlSq3-sogHwbHk9t9qNKgjJxEY,2273
841
- qontract_reconcile-0.10.1rc871.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
842
- qontract_reconcile-0.10.1rc871.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
843
- qontract_reconcile-0.10.1rc871.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
844
- qontract_reconcile-0.10.1rc871.dist-info/RECORD,,
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: