qontract-reconcile 0.10.1rc1106__py3-none-any.whl → 0.10.1rc1107__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.1rc1106
3
+ Version: 0.10.1rc1107
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
@@ -683,7 +683,7 @@ reconcile/utils/gitlab_api.py,sha256=C1nsHQKKybsmFdaG9vsItBjJm69ym4VWbqbKfAEf7oY
683
683
  reconcile/utils/gpg.py,sha256=EKG7_fdMv8BMlV5yUdPiqoTx-KrzmVSEAl2sLkaKwWI,1123
684
684
  reconcile/utils/gql.py,sha256=C0thIm_k9MBldfqwHzyqtYZk9sIvMdm9IbbnXLGwjD8,14158
685
685
  reconcile/utils/grouping.py,sha256=vr9SFHZ7bqmHYrvYcEZt-Er3-yQYfAAdq5sHLZVmXPY,456
686
- reconcile/utils/helm.py,sha256=Zmh9shdcUNJmiHIbBDkuUlk9T_Cg7uvWfw9c4St2n8E,3775
686
+ reconcile/utils/helm.py,sha256=cbvmmdjtfPfHhD5SPqf922P6IKO4Ll9FYiCAIRfQtTk,3830
687
687
  reconcile/utils/helpers.py,sha256=k9svgFFZG7H5FvHYY0g5jJyvgvh2UDZxf0Ib221teag,1179
688
688
  reconcile/utils/imap_client.py,sha256=h8YDiCSCvroErhpH_-KGYI7Y2WU2Q2oSpuxDFbOkSbY,1989
689
689
  reconcile/utils/instrumented_wrappers.py,sha256=eVwMoa6FCrYxLv3RML3WpZF9qKVfCTjMxphgVXG03OM,1073
@@ -819,7 +819,7 @@ reconcile/utils/runtime/sharding.py,sha256=r0ieUtNed7NvknSw6qQrCkKpVXE1shuHGnfFc
819
819
  reconcile/utils/saasherder/__init__.py,sha256=3U8plqMAPRE1kjwZ5YnIsYsggTf4_gS7flRUEuXVBAs,343
820
820
  reconcile/utils/saasherder/interfaces.py,sha256=C2wrw34OXypshVocAsPrVZsSHptgw4g9u7Haa2wulZQ,9087
821
821
  reconcile/utils/saasherder/models.py,sha256=z8ln03zi2a8cu716NcNUDHp8Dv1VcVbhqdWVxCl7x9A,10148
822
- reconcile/utils/saasherder/saasherder.py,sha256=6JE3WfpJKuAN1fdRKJb04L4zMfFHq5vdEwxLWt6yn64,85894
822
+ reconcile/utils/saasherder/saasherder.py,sha256=ncFN9ERyTPHxBlOi55FMRakrbN1OfjI2UfbR1YM1IjE,85903
823
823
  reconcile/utils/terraform/__init__.py,sha256=zNbiyTWo35AT1sFTElL2j_AA0jJ_yWE_bfFn-nD2xik,250
824
824
  reconcile/utils/terraform/config.py,sha256=5UVrd563TMcvi4ooa5JvWVDW1I3bIWg484u79evfV_8,164
825
825
  reconcile/utils/terraform/config_client.py,sha256=gRL1rQ0AqvShei_rcGqC3HDYGskOFKE1nPrJyJE9yno,4676
@@ -870,8 +870,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
870
870
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
871
871
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
872
872
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
873
- qontract_reconcile-0.10.1rc1106.dist-info/METADATA,sha256=9PaXH91G3Ab2O31mwqiRbOyczL6oS7GhRP7SUadkKW8,2213
874
- qontract_reconcile-0.10.1rc1106.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
875
- qontract_reconcile-0.10.1rc1106.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
876
- qontract_reconcile-0.10.1rc1106.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
877
- qontract_reconcile-0.10.1rc1106.dist-info/RECORD,,
873
+ qontract_reconcile-0.10.1rc1107.dist-info/METADATA,sha256=ybs_POVzxtD7de8oGhpljR3lSrcR2LPZX8i99qZD73s,2213
874
+ qontract_reconcile-0.10.1rc1107.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
875
+ qontract_reconcile-0.10.1rc1107.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
876
+ qontract_reconcile-0.10.1rc1107.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
877
+ qontract_reconcile-0.10.1rc1107.dist-info/RECORD,,
reconcile/utils/helm.py CHANGED
@@ -28,7 +28,7 @@ class JSONEncoder(json.JSONEncoder):
28
28
  def do_template(
29
29
  values: Mapping[str, Any],
30
30
  path: str,
31
- name: str,
31
+ namespace: str,
32
32
  ) -> str:
33
33
  try:
34
34
  with (
@@ -76,9 +76,9 @@ def do_template(
76
76
  "helm",
77
77
  "template",
78
78
  path,
79
- "-n",
80
- name,
81
- "-f",
79
+ "--namespace",
80
+ namespace,
81
+ "--values",
82
82
  values_file.name,
83
83
  "--repository-config",
84
84
  repository_config_file.name,
@@ -100,20 +100,20 @@ def do_template(
100
100
  def template(
101
101
  values: Mapping[str, Any],
102
102
  path: str = "./helm/qontract-reconcile",
103
- name: str = "qontract-reconcile",
103
+ namespace: str = "qontract-reconcile",
104
104
  ) -> Mapping[str, Any]:
105
- return yaml.safe_load(do_template(values=values, path=path, name=name))
105
+ return yaml.safe_load(do_template(values=values, path=path, namespace=namespace))
106
106
 
107
107
 
108
108
  def template_all(
109
109
  url: str,
110
110
  path: str,
111
- name: str,
111
+ namespace: str,
112
112
  values: Mapping[str, Any],
113
113
  ssl_verify: bool = True,
114
114
  ) -> Iterable[Mapping[str, Any]]:
115
115
  with tempfile.TemporaryDirectory() as wd:
116
116
  git.clone(url, wd, depth=1, verify=ssl_verify)
117
117
  return yaml.safe_load_all(
118
- do_template(values=values, path=f"{wd}{path}", name=name)
118
+ do_template(values=values, path=f"{wd}{path}", namespace=namespace)
119
119
  )
@@ -989,7 +989,7 @@ class SaasHerder: # pylint: disable=too-many-public-methods
989
989
  resources = helm.template_all(
990
990
  url=url,
991
991
  path=path,
992
- name=resource_template_name,
992
+ namespace=spec.target.namespace.name,
993
993
  values=consolidated_parameters,
994
994
  ssl_verify=ssl_verify,
995
995
  )