qontract-reconcile 0.10.2.dev76__py3-none-any.whl → 0.10.2.dev78__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.dev76
3
+ Version: 0.10.2.dev78
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
@@ -208,8 +208,8 @@ reconcile/external_resources/secrets_sync.py,sha256=50fK4fzgSz-K8uy5_DQQWA_ju_rT
208
208
  reconcile/external_resources/state.py,sha256=gF3ACdl7YiUlbQ4uEGrD6i_Txxqr6mT9f8IFlTQ-8dY,13176
209
209
  reconcile/fleet_labeler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
210
210
  reconcile/fleet_labeler/dependencies.py,sha256=Ta-SLnrHRN4OBAmhE_mTk1P7y1X7AInIiQsIYaY6hY0,2910
211
- reconcile/fleet_labeler/integration.py,sha256=5etCwHDTOEeOXHPr9FEB5TaVPphI3sef5fiHq7BR-1Y,7253
212
- reconcile/fleet_labeler/merge_request.py,sha256=j6RFAr5lujeL73fzhshoBe1JS4dK-EsfROKr9fENoAw,1131
211
+ reconcile/fleet_labeler/integration.py,sha256=jlgHR9U95x4paAckyqlD0FlFn1b-RhBJNYT4htKkrlk,7262
212
+ reconcile/fleet_labeler/merge_request.py,sha256=Mg_ueGj3ZMYIOT6yz2nb8jlpoR1V7fSkCIbljCtnmCc,1137
213
213
  reconcile/fleet_labeler/meta.py,sha256=DF7O4T9wvQ7-xTWXvuNw1OG_F0SBmRrjFBtVy9wWh9U,146
214
214
  reconcile/fleet_labeler/metrics.py,sha256=wx9BmXLsN67m-aSsf81iB7Ehj5SzUsS2WB75isUReZg,662
215
215
  reconcile/fleet_labeler/ocm.py,sha256=GGsz-bq1g8BJVVMCfI2kSwZCyngbQoZ3i3k8fO608KA,2506
@@ -488,7 +488,7 @@ reconcile/skupper_network/site_controller.py,sha256=ovBUPuqrJjmhZBSV2zF9HQByVgBF
488
488
  reconcile/statuspage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
489
489
  reconcile/statuspage/atlassian.py,sha256=41uE77ZeV0M98k_xVmrXUQ33iVG8Lb3TwrWq2pRc84U,18617
490
490
  reconcile/statuspage/integration.py,sha256=hsazrQMceJbr61nEkJLxJbHhudTGtFuH0mlCo66-2ug,711
491
- reconcile/statuspage/page.py,sha256=EWzu7rYjS6QJzgjKmfSV5pGmCAzFR3U5HGiN9ytblog,5375
491
+ reconcile/statuspage/page.py,sha256=zq9udsWw7ARxnG10mZytcBwGvH30XsyduqcQJByCQaI,6339
492
492
  reconcile/statuspage/state.py,sha256=wjX9by5Yy7nobxiE-xNhf6GyNwMVATd0O37jBckJm5M,1591
493
493
  reconcile/statuspage/status.py,sha256=5nYtMaxOqMYdM7n_Glss3ZcaPKQe_nUUQKH6xCTE9rI,2741
494
494
  reconcile/statuspage/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -786,7 +786,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
786
786
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
787
787
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
788
788
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
789
- qontract_reconcile-0.10.2.dev76.dist-info/METADATA,sha256=s6eKwa3m2zrcw94LpEgwZaygpv33tsluTXLefR2jdzM,24565
790
- qontract_reconcile-0.10.2.dev76.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
- qontract_reconcile-0.10.2.dev76.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
792
- qontract_reconcile-0.10.2.dev76.dist-info/RECORD,,
789
+ qontract_reconcile-0.10.2.dev78.dist-info/METADATA,sha256=vPdgXMKeG30DRrLj6VuSQbl0RLA3c8EgcWSj-UcxQ6Y,24565
790
+ qontract_reconcile-0.10.2.dev78.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
+ qontract_reconcile-0.10.2.dev78.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
792
+ qontract_reconcile-0.10.2.dev78.dist-info/RECORD,,
@@ -187,4 +187,4 @@ class FleetLabelerIntegration(QontractReconcileIntegration[NoParams]):
187
187
  desired_content = self._render_yaml_file(
188
188
  current_content, cluster_ids_to_delete, sorted_clusters_to_add
189
189
  )
190
- vcs.open_merge_request(path=spec.path, content=desired_content)
190
+ vcs.open_merge_request(path=f"data{spec.path}", content=desired_content)
@@ -24,7 +24,7 @@ class FleetLabelerUpdates(MergeRequestBase):
24
24
  ):
25
25
  self._path = path
26
26
  self._content = content
27
- self.name = f"[Fleet Labeler] Update cluster inventory for {path}"
27
+ self._title = f"[Fleet Labeler] Update cluster inventory for {path}"
28
28
 
29
29
  super().__init__()
30
30
 
@@ -32,11 +32,11 @@ class FleetLabelerUpdates(MergeRequestBase):
32
32
 
33
33
  @property
34
34
  def title(self) -> str:
35
- return self.name
35
+ return self._title
36
36
 
37
37
  @property
38
38
  def description(self) -> str:
39
- return self.name
39
+ return self._title
40
40
 
41
41
  def process(self, gitlab_cli: GitLabApi) -> None:
42
42
  msg = "update cluster inventory"
@@ -52,6 +52,16 @@ class StatusComponent(BaseModel):
52
52
  class Config:
53
53
  arbitrary_types_allowed = True
54
54
 
55
+ def __eq__(self, other: object) -> bool:
56
+ if not isinstance(other, StatusComponent):
57
+ raise NotImplementedError("Cannot compare to non StatusComponent objects.")
58
+ return (
59
+ self.name == other.name
60
+ and self.display_name == other.display_name
61
+ and self.description == other.description
62
+ and self.group_name == other.group_name
63
+ )
64
+
55
65
  @classmethod
56
66
  def init_from_page_component(
57
67
  cls, component: StatusPageComponentV1, name_override: str | None = None
@@ -172,3 +182,17 @@ class StatusMaintenance(BaseModel):
172
182
  components=affected_components,
173
183
  announcements=statuspage_announcements[0],
174
184
  )
185
+
186
+ def __eq__(self, other: object) -> bool:
187
+ if not isinstance(other, StatusMaintenance):
188
+ raise NotImplementedError(
189
+ "Cannot compare to non StatusMaintenance objects."
190
+ )
191
+ return (
192
+ self.name == other.name
193
+ and self.message == other.message
194
+ and self.schedule_start == other.schedule_start
195
+ and self.schedule_end == other.schedule_end
196
+ and self.components == other.components
197
+ and self.announcements == other.announcements
198
+ )