qontract-reconcile 0.10.2.dev188__py3-none-any.whl → 0.10.2.dev190__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.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev188
3
+ Version: 0.10.2.dev190
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -783,10 +783,10 @@ tools/app_sre_tekton_access_reporter.py,sha256=o9prLUgQpwO3msRWc2as1xT1y9OB3znkp
783
783
  tools/app_sre_tekton_access_revalidation.py,sha256=66nHEaY-bIqxIhpcmwN8AvQZu6ZXenfkg4Fut0pVZRM,2726
784
784
  tools/glitchtip_access_reporter.py,sha256=o01A6b88t3Wie6tj_tJWWVo2J01LxQ_a9giGm4UzEaU,2901
785
785
  tools/glitchtip_access_revalidation.py,sha256=PXN5wxl6OX8sxddPaakDF3X79nFLvpm-lz0mWLVelw0,2806
786
- tools/qontract_cli.py,sha256=yVAFXynBdfGQ7Z0Huv3Ptht4f0JHqI19dcosyFPBv-Y,158986
786
+ tools/qontract_cli.py,sha256=kaKlRhxyqcK4wB454QyvMAY5BMIPMi_vRTLHhX_o954,159006
787
787
  tools/template_validation.py,sha256=qpKYaTgk0GOPGa2Ct5_5sKdwIHtCAKIBGzsMPuJU5fw,3371
788
788
  tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
789
- tools/cli_commands/container_images_report.py,sha256=SXh6sZ1dXXzd-2R5eeBufCtW3J4-Y55--0MZLdo4lr8,5409
789
+ tools/cli_commands/container_images_report.py,sha256=_8GuBsl_qYP5qfa5aa9krwyKHYu82MSh02deHEroSa4,5459
790
790
  tools/cli_commands/erv2.py,sha256=WJgom7Fe2HuM31QKieYs_3evJuH7DEyd53sV-FKX7PU,26047
791
791
  tools/cli_commands/gpg_encrypt.py,sha256=JWwds_Qg7KhSJMIGUh8TfI5-Jf17iUtmaEi4kWJxfVE,4907
792
792
  tools/cli_commands/systems_and_tools.py,sha256=EMHOF1AtUDaoSk0bbjl6oUKYAz4rTZjIBaF-6E6GspM,16816
@@ -809,7 +809,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
809
809
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
810
810
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
811
811
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
812
- qontract_reconcile-0.10.2.dev188.dist-info/METADATA,sha256=g9gHd2tw5OSm-4krqouBBWdR7wvqYAoiro5NtiGcnEY,24555
813
- qontract_reconcile-0.10.2.dev188.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
814
- qontract_reconcile-0.10.2.dev188.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
815
- qontract_reconcile-0.10.2.dev188.dist-info/RECORD,,
812
+ qontract_reconcile-0.10.2.dev190.dist-info/METADATA,sha256=M8HNFaDsoe3dEbG8jlcNJGwc1jHGo6Epm75Tmwy7vi8,24555
813
+ qontract_reconcile-0.10.2.dev190.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
814
+ qontract_reconcile-0.10.2.dev190.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
815
+ qontract_reconcile-0.10.2.dev190.dist-info/RECORD,,
@@ -90,7 +90,7 @@ def fetch_pods_images_from_namespaces(
90
90
 
91
91
  for name in ni.image_names or []:
92
92
  result[name]["namespaces"].add(ni.namespace_name)
93
- result[name]["apps"].add(ni.app_name)
93
+ result[name]["namespace_apps"].add(ni.app_name)
94
94
  result[name]["count"] += 1
95
95
 
96
96
  exclude_pattern_compiled: re.Pattern | None = None
@@ -111,7 +111,7 @@ def fetch_pods_images_from_namespaces(
111
111
  result_filtered_flattened.append({
112
112
  "name": name,
113
113
  "namespaces": ",".join(sorted(value["namespaces"])),
114
- "apps": ",".join(sorted(value["apps"])),
114
+ "namespace_apps": ",".join(sorted(value["namespace_apps"])),
115
115
  "count": value["count"],
116
116
  })
117
117
 
@@ -122,7 +122,7 @@ def fetch_pods_images_from_namespaces(
122
122
  result_filtered_flattened.append({
123
123
  "name": "error",
124
124
  "namespaces": message,
125
- "apps": "",
125
+ "namespace_apps": "",
126
126
  "count": count,
127
127
  })
128
128
 
@@ -130,7 +130,7 @@ def fetch_pods_images_from_namespaces(
130
130
 
131
131
 
132
132
  def _get_all_images_default() -> dict[str, Any]:
133
- return {"namespaces": set(), "apps": set(), "count": 0}
133
+ return {"namespaces": set(), "namespace_apps": set(), "count": 0}
134
134
 
135
135
 
136
136
  def _get_namespace_images(ns: NamespaceV1, oc_map: OCMap) -> NamespaceImages:
tools/qontract_cli.py CHANGED
@@ -2112,8 +2112,8 @@ def quay_mirrors(ctx: click.Context) -> None:
2112
2112
 
2113
2113
  mirrors.append({
2114
2114
  "repo": f"quay.io/{org_name}/{name}",
2115
- "public": public,
2116
2115
  "upstream": url,
2116
+ "public": public,
2117
2117
  })
2118
2118
 
2119
2119
  if ctx.obj["options"]["output"] == "md":
@@ -3183,10 +3183,10 @@ def container_image_details(ctx: click.Context) -> None:
3183
3183
  json_table = {
3184
3184
  "filter": True,
3185
3185
  "fields": [
3186
- {"key": "name", "sortable": True},
3187
- {"key": "namespaces", "sortable": True},
3188
- {"key": "apps", "sortable": True},
3189
- {"key": "count", "sortable": True},
3186
+ {"key": "app", "sortable": True},
3187
+ {"key": "repository", "sortable": True},
3188
+ {"key": "email", "sortable": True},
3189
+ {"key": "slack", "sortable": True},
3190
3190
  ],
3191
3191
  "items": data,
3192
3192
  }
@@ -4601,7 +4601,7 @@ def container_images(
4601
4601
  "fields": [
4602
4602
  {"key": "name", "sortable": True},
4603
4603
  {"key": "namespaces", "sortable": True},
4604
- {"key": "apps", "sortable": True},
4604
+ {"key": "namespace_apps", "sortable": True},
4605
4605
  {"key": "count", "sortable": True},
4606
4606
  ],
4607
4607
  "items": results,
@@ -4622,7 +4622,7 @@ You can view the source of this Markdown to extract the JSON data.
4622
4622
  columns = [
4623
4623
  "name",
4624
4624
  "namespaces",
4625
- "apps",
4625
+ "namespace_apps",
4626
4626
  "count",
4627
4627
  ]
4628
4628
  ctx.obj["options"]["sort"] = False