qontract-reconcile 0.10.2.dev124__py3-none-any.whl → 0.10.2.dev125__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.dev124
3
+ Version: 0.10.2.dev125
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
@@ -83,7 +83,7 @@ reconcile/openshift_saas_deploy_trigger_configs.py,sha256=eUejMGWuaQabZTLuvPLLvR
83
83
  reconcile/openshift_saas_deploy_trigger_images.py,sha256=iUsiBGJf-CyFw7tSLWo59rXmSvsVnN6TTaAObbsVpNg,936
84
84
  reconcile/openshift_saas_deploy_trigger_moving_commits.py,sha256=fpanSH-EGH15C9me--0VSpcpaw9BY4RTb8_mPtsSZGc,942
85
85
  reconcile/openshift_saas_deploy_trigger_upstream_jobs.py,sha256=0CjfeVQE0QrRrOVuTxkXvBUdKNtYLYuX4mZRB48PQ9g,940
86
- reconcile/openshift_serviceaccount_tokens.py,sha256=QcHTUb-SDT9_HZgnZxl3CWMipNs0nUYhqw_aBAl8V50,8857
86
+ reconcile/openshift_serviceaccount_tokens.py,sha256=SaYT8g_T1W8P8r391ZWV1rYv5BfFxy8x_HIM9XqAm3g,8906
87
87
  reconcile/openshift_tekton_resources.py,sha256=wUq7ituxqwpVEXHPKYQ9Q-wYZZR0fLgJioQfJFEdEZY,16205
88
88
  reconcile/openshift_upgrade_watcher.py,sha256=9IB321hlRZZhzdaR9G3zoWAhVv0-KzNiEqx73p3-wmk,6539
89
89
  reconcile/openshift_users.py,sha256=JUWLb13USlQ4KvXZVsi3JES4csZnXlH0plhxskg_p6A,5300
@@ -791,7 +791,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
791
791
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
792
792
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
793
793
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
794
- qontract_reconcile-0.10.2.dev124.dist-info/METADATA,sha256=ArQaaGzA1InWUIlblpMRecxYGdRBSLgWmwSSmUE2lmc,24566
795
- qontract_reconcile-0.10.2.dev124.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
796
- qontract_reconcile-0.10.2.dev124.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
797
- qontract_reconcile-0.10.2.dev124.dist-info/RECORD,,
794
+ qontract_reconcile-0.10.2.dev125.dist-info/METADATA,sha256=0CAmKlRzqxs2IzOmfBggloZaP381t54Ava7CEdNQ3AI,24566
795
+ qontract_reconcile-0.10.2.dev125.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
796
+ qontract_reconcile-0.10.2.dev125.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
797
+ qontract_reconcile-0.10.2.dev125.dist-info/RECORD,,
@@ -149,17 +149,17 @@ def write_outputs_to_vault(
149
149
  integration_name = QONTRACT_INTEGRATION.replace("_", "-")
150
150
  for cluster, namespace, _, data in ri:
151
151
  for name, d_item in data["desired"].items():
152
- body_data = d_item.body["data"]
153
- # write secret to per-namespace location
154
- secret_path = (
155
- f"{vault_path}/{integration_name}/{cluster}/{namespace}/{name}"
156
- )
157
- secret = {"path": secret_path, "data": body_data}
158
- vault_client.write(secret) # type: ignore
159
- # write secret to shared-resources location
160
- secret_path = f"{vault_path}/{integration_name}/shared-resources/{name}"
161
- secret = {"path": secret_path, "data": body_data}
162
- vault_client.write(secret) # type: ignore
152
+ if body_data := d_item.body.get("data"):
153
+ # write secret to per-namespace location
154
+ secret_path = (
155
+ f"{vault_path}/{integration_name}/{cluster}/{namespace}/{name}"
156
+ )
157
+ secret = {"path": secret_path, "data": body_data}
158
+ vault_client.write(secret) # type: ignore
159
+ # write secret to shared-resources location
160
+ secret_path = f"{vault_path}/{integration_name}/shared-resources/{name}"
161
+ secret = {"path": secret_path, "data": body_data}
162
+ vault_client.write(secret) # type: ignore
163
163
 
164
164
 
165
165
  def canonicalize_namespaces(namespaces: Iterable[NamespaceV1]) -> list[NamespaceV1]: