qontract-reconcile 0.10.1rc1027__py3-none-any.whl → 0.10.1rc1029__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.1rc1027
3
+ Version: 0.10.1rc1029
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
@@ -10,7 +10,7 @@ reconcile/aws_iam_password_reset.py,sha256=q96mwr2KeEQ5bpNniGlgIMZTxiuLSodcYfX-t
10
10
  reconcile/aws_support_cases_sos.py,sha256=Jk6_XjDeJSYxgRGqcEAOcynt9qJF2r5HPIPcSKmoBv8,2974
11
11
  reconcile/blackbox_exporter_endpoint_monitoring.py,sha256=O1wFp52EyF538c6txaWBs8eMtUIy19gyHZ6VzJ6QXS8,3512
12
12
  reconcile/checkpoint.py,sha256=_JhMxrye5BgkRMxWYuf7Upli6XayPINKSsuo3ynHTRc,5010
13
- reconcile/cli.py,sha256=rfT0jrWjDjvbUE0JWVvSladV2vTKqBBdNrthlH2Ekyc,106979
13
+ reconcile/cli.py,sha256=XYYAh7NPZY86nIIJXNaY3ehbP1ACuix-pMpBUJqsLI4,107372
14
14
  reconcile/closedbox_endpoint_monitoring_base.py,sha256=rLh16BOlBOxTmJ8Si3wWyyEpmMlhh4Znx1Gc36qsmOc,4865
15
15
  reconcile/cluster_deployment_mapper.py,sha256=5gumAaRCcFXsabUJ1dnuUy9WrP_FEEM5JnOnE8ch9sE,2326
16
16
  reconcile/dashdotdb_base.py,sha256=l34QDu1G96_Ctnh7ZXdxXgSeCE93GQMdLAkWxmN6vDA,4775
@@ -186,7 +186,7 @@ reconcile/dynatrace_token_provider/metrics.py,sha256=xiKkl8fTEBQaXJelGCPNTZhHAWd
186
186
  reconcile/dynatrace_token_provider/model.py,sha256=gkpqo5rRRueBXnIMjp4EEHqBUBuU65TRI8zpdb8GJ0A,241
187
187
  reconcile/dynatrace_token_provider/ocm.py,sha256=iHMsgbsLs-dlrB9UXmWNDF7E4UDe49JOsLa9rnowKfo,4282
188
188
  reconcile/endpoints_discovery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
189
- reconcile/endpoints_discovery/integration.py,sha256=dnZ42vrrc3q3-EDO7qE5HVjwHrnpb4_2O_QhFhi8Q-U,12333
189
+ reconcile/endpoints_discovery/integration.py,sha256=lUx_S_mQNATuB3tqGbyaliHBb355PCuU5SaVAiD_tbQ,12354
190
190
  reconcile/endpoints_discovery/merge_request.py,sha256=NktpwMUoQ9TvBzOeHSPC09OqxWmgZBZVy-Eqmsm_vrA,2909
191
191
  reconcile/endpoints_discovery/merge_request_manager.py,sha256=oY3lovy5DcUgHNEDzWrbOPabzZtaGMns6YLl5ipZJ0c,6346
192
192
  reconcile/external_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -750,7 +750,7 @@ reconcile/utils/clusterhealth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
750
750
  reconcile/utils/clusterhealth/providerbase.py,sha256=DXomGYogckBLqWtXn0PXU0hWYxB6K0F7ernldrkHhVY,1140
751
751
  reconcile/utils/clusterhealth/telemeter.py,sha256=PllSLsJXvGNatmTF4mxCNPVbDrpr_MPk0m5pWj-LT6g,1534
752
752
  reconcile/utils/dynatrace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
753
- reconcile/utils/dynatrace/client.py,sha256=dVaTwIlLhutv_2sxL_ISIQkN5br1Tfm14dhVP_hwePI,2834
753
+ reconcile/utils/dynatrace/client.py,sha256=H8EjqmZlB1a2ionAjV8_R1ozs9lWbmPCYKLe0J8kZAs,2838
754
754
  reconcile/utils/glitchtip/__init__.py,sha256=FT6iBhGqoe7KExFdbgL8AYUb64iW_4snF5__Dcl7yt0,258
755
755
  reconcile/utils/glitchtip/client.py,sha256=ovh4tx-ajlihjvcq6nyY4chulbuMJYvzDPv9j9CuAKM,7867
756
756
  reconcile/utils/glitchtip/models.py,sha256=uHbCK9-RWgxNYUAkEHXRAZRDDZW7jkOFFt9MdlqN4bU,6481
@@ -865,8 +865,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
865
865
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
866
866
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
867
867
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
868
- qontract_reconcile-0.10.1rc1027.dist-info/METADATA,sha256=NZ2RmjjS7vqLah46hp_j6Gny8RHEeRBbHu9EMHd49dc,2213
869
- qontract_reconcile-0.10.1rc1027.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
870
- qontract_reconcile-0.10.1rc1027.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
871
- qontract_reconcile-0.10.1rc1027.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
872
- qontract_reconcile-0.10.1rc1027.dist-info/RECORD,,
868
+ qontract_reconcile-0.10.1rc1029.dist-info/METADATA,sha256=w9MZTHnW2xZ0UpGosbgS2pYbE8FSj9XvFbw_uJnNjRw,2213
869
+ qontract_reconcile-0.10.1rc1029.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
870
+ qontract_reconcile-0.10.1rc1029.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
871
+ qontract_reconcile-0.10.1rc1029.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
872
+ qontract_reconcile-0.10.1rc1029.dist-info/RECORD,,
reconcile/cli.py CHANGED
@@ -1810,6 +1810,9 @@ def openshift_prometheus_rules(
1810
1810
  @use_jump_host()
1811
1811
  @cluster_name
1812
1812
  @namespace_name
1813
+ @enable_extended_early_exit
1814
+ @extended_early_exit_cache_ttl_seconds
1815
+ @log_cached_log_output
1813
1816
  @click.option(
1814
1817
  "--endpoint-tmpl-resource",
1815
1818
  help="Resource name of the endpoint template in the app-interface.",
@@ -1823,6 +1826,9 @@ def endpoints_discovery(
1823
1826
  use_jump_host,
1824
1827
  cluster_name,
1825
1828
  namespace_name,
1829
+ enable_extended_early_exit,
1830
+ extended_early_exit_cache_ttl_seconds,
1831
+ log_cached_log_output,
1826
1832
  endpoint_tmpl_resource,
1827
1833
  ):
1828
1834
  from reconcile.endpoints_discovery.integration import (
@@ -1836,6 +1842,9 @@ def endpoints_discovery(
1836
1842
  use_jump_host=use_jump_host,
1837
1843
  cluster_name=cluster_name,
1838
1844
  namespace_name=namespace_name,
1845
+ enable_extended_early_exit=enable_extended_early_exit,
1846
+ extended_early_exit_cache_ttl_seconds=extended_early_exit_cache_ttl_seconds,
1847
+ log_cached_log_output=log_cached_log_output,
1839
1848
  )
1840
1849
  if endpoint_tmpl_resource:
1841
1850
  params.endpoint_tmpl_resource = endpoint_tmpl_resource
@@ -70,11 +70,11 @@ class Route(BaseModel):
70
70
 
71
71
 
72
72
  def endpoint_prefix(namespace: NamespaceV1) -> str:
73
- return f"{QONTRACT_INTEGRATION}-{namespace.cluster.name}-{namespace.name}"
73
+ return f"{QONTRACT_INTEGRATION}/{namespace.cluster.name}/{namespace.name}/"
74
74
 
75
75
 
76
76
  def compile_endpoint_name(endpoint_prefix: str, route: Route) -> str:
77
- return f"{endpoint_prefix}-{route.name}"
77
+ return f"{endpoint_prefix}{route.name}"
78
78
 
79
79
 
80
80
  def render_template(template: str, endpoint_name: str, route: Route) -> dict:
@@ -261,7 +261,8 @@ class EndpointsDiscoveryIntegration(
261
261
  ) -> ExtendedEarlyExitRunnerResult:
262
262
  """Reconcile the endpoints for all namespaces."""
263
263
  apps = self.get_apps(oc_map, endpoint_template, namespaces)
264
- merge_request_manager.create_merge_request(apps=apps)
264
+ if apps:
265
+ merge_request_manager.create_merge_request(apps=apps)
265
266
  return ExtendedEarlyExitRunnerResult(payload={}, applied_count=len(apps))
266
267
 
267
268
  @defer
@@ -73,8 +73,8 @@ class DynatraceClient:
73
73
  try:
74
74
  self._api.tokens.put(
75
75
  token_id=token_id,
76
- name=name,
77
76
  api_token=ApiTokenUpdate(
77
+ name=name,
78
78
  scopes=scopes,
79
79
  ),
80
80
  )