gitops 0.14.0__tar.gz → 0.14.1__tar.gz

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.
Files changed (84) hide show
  1. {gitops-0.14.0 → gitops-0.14.1}/.github/workflows/release-please.yaml +3 -4
  2. gitops-0.14.1/.release-please-manifest.json +5 -0
  3. {gitops-0.14.0 → gitops-0.14.1}/CHANGELOG.md +8 -0
  4. {gitops-0.14.0 → gitops-0.14.1}/PKG-INFO +1 -1
  5. {gitops-0.14.0/charts/gitops → gitops-0.14.1}/charts/gitops/CHANGELOG.md +15 -0
  6. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/Chart.yaml +1 -1
  7. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/deployment.yml +1 -0
  8. {gitops-0.14.0 → gitops-0.14.1}/gitops/__init__.py +1 -1
  9. {gitops-0.14.0/gitops_server → gitops-0.14.1}/gitops_server/CHANGELOG.md +7 -0
  10. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/deploy.py +12 -6
  11. {gitops-0.14.0 → gitops-0.14.1}/pyproject.toml +1 -1
  12. {gitops-0.14.0 → gitops-0.14.1}/release-please-config.json +2 -2
  13. {gitops-0.14.0 → gitops-0.14.1}/tests/test_deploy.py +2 -2
  14. {gitops-0.14.0 → gitops-0.14.1}/uv.lock +1 -1
  15. gitops-0.14.0/.release-please-manifest.json +0 -5
  16. gitops-0.14.0/charts/gitops/CHANGELOG.md +0 -0
  17. gitops-0.14.0/gitops_server/CHANGELOG.md +0 -0
  18. {gitops-0.14.0 → gitops-0.14.1}/.dockerignore +0 -0
  19. {gitops-0.14.0 → gitops-0.14.1}/.github/workflows/test.yml +0 -0
  20. {gitops-0.14.0 → gitops-0.14.1}/.gitignore +0 -0
  21. {gitops-0.14.0 → gitops-0.14.1}/.mise.toml +0 -0
  22. {gitops-0.14.0 → gitops-0.14.1}/.pre-commit-config.yaml +0 -0
  23. {gitops-0.14.0 → gitops-0.14.1}/Dockerfile +0 -0
  24. {gitops-0.14.0 → gitops-0.14.1}/LICENSE +0 -0
  25. {gitops-0.14.0 → gitops-0.14.1}/README.md +0 -0
  26. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/.helmignore +0 -0
  27. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/README.md +0 -0
  28. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/_helpers.tpl +0 -0
  29. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/certificate.yml +0 -0
  30. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/environment.yml +0 -0
  31. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/ingress.yml +0 -0
  32. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/issuer.yml +0 -0
  33. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/secrets.yml +0 -0
  34. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/service.yml +0 -0
  35. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/serviceaccount.yaml +0 -0
  36. {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/values.yaml +0 -0
  37. {gitops-0.14.0 → gitops-0.14.1}/docker-compose.yml +0 -0
  38. {gitops-0.14.0 → gitops-0.14.1}/gitops/common/__init__.py +0 -0
  39. {gitops-0.14.0 → gitops-0.14.1}/gitops/common/app.py +0 -0
  40. {gitops-0.14.0 → gitops-0.14.1}/gitops/common/utils.py +0 -0
  41. {gitops-0.14.0 → gitops-0.14.1}/gitops/core.py +0 -0
  42. {gitops-0.14.0 → gitops-0.14.1}/gitops/main.py +0 -0
  43. {gitops-0.14.0 → gitops-0.14.1}/gitops/py.typed +0 -0
  44. {gitops-0.14.0 → gitops-0.14.1}/gitops/settings.py +0 -0
  45. {gitops-0.14.0 → gitops-0.14.1}/gitops/shorthands.py +0 -0
  46. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/__init__.py +0 -0
  47. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/apps.py +0 -0
  48. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/async_runner.py +0 -0
  49. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/cli.py +0 -0
  50. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/exceptions.py +0 -0
  51. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/images.py +0 -0
  52. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/kube.py +0 -0
  53. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/tags.py +0 -0
  54. {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/yaml.py +0 -0
  55. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/README.md +0 -0
  56. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/__init__.py +0 -0
  57. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/app.py +0 -0
  58. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/main.py +0 -0
  59. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/settings.py +0 -0
  60. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/types.py +0 -0
  61. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/__init__.py +0 -0
  62. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/git.py +0 -0
  63. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/github.py +0 -0
  64. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/slack.py +0 -0
  65. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/__init__.py +0 -0
  66. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/__init__.py +0 -0
  67. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/hooks.py +0 -0
  68. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/worker.py +0 -0
  69. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/status_updater/__init__.py +0 -0
  70. {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/status_updater/worker.py +0 -0
  71. {gitops-0.14.0 → gitops-0.14.1}/release.py +0 -0
  72. {gitops-0.14.0 → gitops-0.14.1}/ruff.toml +0 -0
  73. {gitops-0.14.0 → gitops-0.14.1}/secrets.example.env +0 -0
  74. {gitops-0.14.0 → gitops-0.14.1}/setup.cfg +0 -0
  75. {gitops-0.14.0 → gitops-0.14.1}/tests/__init__.py +0 -0
  76. {gitops-0.14.0 → gitops-0.14.1}/tests/conftest.py +0 -0
  77. {gitops-0.14.0 → gitops-0.14.1}/tests/sample_data.py +0 -0
  78. {gitops-0.14.0 → gitops-0.14.1}/tests/test_app.py +0 -0
  79. {gitops-0.14.0 → gitops-0.14.1}/tests/test_core.py +0 -0
  80. {gitops-0.14.0 → gitops-0.14.1}/tests/test_git.py +0 -0
  81. {gitops-0.14.0 → gitops-0.14.1}/tests/test_gitops_server.py +0 -0
  82. {gitops-0.14.0 → gitops-0.14.1}/tests/test_utils.py +0 -0
  83. {gitops-0.14.0 → gitops-0.14.1}/tests/utils.py +0 -0
  84. {gitops-0.14.0 → gitops-0.14.1}/tests/webhook_sample_data.py +0 -0
@@ -38,11 +38,10 @@ jobs:
38
38
  steps:
39
39
  - uses: actions/checkout@v4
40
40
  - name: Publish Helm charts
41
- uses: helm/chart-releaser-action@v1.6.0
41
+ uses: stefanprodan/helm-gh-pages@master
42
42
  with:
43
- charts_dir: charts/gitops
44
- env:
45
- CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
43
+ token: ${{ secrets.GITHUB_TOKEN }}
44
+
46
45
  publish_to_pypi:
47
46
  name: Publishes tag to pypi
48
47
  runs-on: ubuntu-latest
@@ -0,0 +1,5 @@
1
+ {
2
+ ".": "0.14.1",
3
+ "gitops_server": "0.15.1",
4
+ "charts/gitops": "0.13.2"
5
+ }
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.14.1](https://github.com/uptick/gitops/compare/cli-v0.14.0...cli-v0.14.1) (2024-12-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * change charts directory for helm ci ([105357a](https://github.com/uptick/gitops/commit/105357a831f9efdf4f743fc5abc7937aa0d266f0))
9
+ * revert our helm chart publisher action ([3f558d8](https://github.com/uptick/gitops/commit/3f558d85d631e3384a2417a20fd32f25a94fc13e))
10
+
3
11
  ## [0.14.0](https://github.com/uptick/gitops/compare/cli-v0.13.2...cli-v0.14.0) (2024-12-06)
4
12
 
5
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gitops
3
- Version: 0.14.0
3
+ Version: 0.14.1
4
4
  Summary: Manage multiple apps across one or more k8s clusters.
5
5
  Author-email: Jarek Głowacki <jarekwg@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.2](https://github.com/uptick/gitops/compare/helm-v0.13.1...helm-v0.13.2) (2024-12-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * change charts directory for helm ci ([105357a](https://github.com/uptick/gitops/commit/105357a831f9efdf4f743fc5abc7937aa0d266f0))
9
+ * revert our helm chart publisher action ([3f558d8](https://github.com/uptick/gitops/commit/3f558d85d631e3384a2417a20fd32f25a94fc13e))
10
+
11
+ ## [0.13.1](https://github.com/uptick/gitops/compare/helm-v0.13.0...helm-v0.13.1) (2024-12-06)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * add more memory to gitops ([3ca722f](https://github.com/uptick/gitops/commit/3ca722f1f1e03131979a4de66e17f23052a14c24))
17
+
3
18
  ## [0.13.0](https://github.com/uptick/gitops/compare/helm-v0.12.1...helm-v0.13.0) (2024-11-15)
4
19
 
5
20
 
@@ -2,4 +2,4 @@ apiVersion: v1
2
2
  appVersion: "1.0"
3
3
  description: GitOps Server Helm chart.
4
4
  name: gitops
5
- version: 0.13.0
5
+ version: 0.13.2
@@ -42,6 +42,7 @@ spec:
42
42
  memory: "750Mi"
43
43
  limits:
44
44
  memory: "1500Mi"
45
+
45
46
  envFrom:
46
47
  - configMapRef:
47
48
  name: {{ .Release.Name }}-environment
@@ -6,7 +6,7 @@ from gitops.utils.apps import App, get_app_details, get_apps
6
6
 
7
7
  from .utils.cli import success, warning
8
8
 
9
- __version__ = "0.14.0"
9
+ __version__ = "0.14.1"
10
10
 
11
11
 
12
12
  # Checking gitops version matches cluster repo version.
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.15.1](https://github.com/uptick/gitops/compare/server-v0.15.0...server-v0.15.1) (2024-12-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * deploy new gitops fix ([4994131](https://github.com/uptick/gitops/commit/49941316d85f320a77a3abf9f08970871f2fd3dc))
9
+
3
10
  ## [0.15.0](https://github.com/uptick/gitops/compare/server-v0.14.0...server-v0.15.0) (2024-12-06)
4
11
 
5
12
 
@@ -69,7 +69,7 @@ class Deployer:
69
69
  self.successful_apps: set[str] = set()
70
70
  self.failed_apps: set[str] = set()
71
71
 
72
- self.post_ts = None
72
+ self.post_ts: str | None = None
73
73
 
74
74
  @classmethod
75
75
  async def from_push_event(cls, push_event):
@@ -107,7 +107,7 @@ class Deployer:
107
107
  f"Running deployment for these deltas: A{list(self.added_apps)}, U{list(self.updated_apps)},"
108
108
  f" R{list(self.removed_apps)}"
109
109
  )
110
- self.post_ts = await self.post_deploy_summary()
110
+ await self.post_deploy_summary()
111
111
  update_results = await asyncio.gather(
112
112
  *[
113
113
  self.update_app_deployment(self.current_app_definitions.apps[app_name])
@@ -232,10 +232,15 @@ class Deployer:
232
232
  self.successful_apps.add(app.name)
233
233
  await handle_successful_deploy(app, result, deployer)
234
234
 
235
- await self.post_deploy_summary()
235
+ # TODO: Fix this in the future. We want to update the message with the latest status.
236
+ # But we can't because of the messge length (when messaging > 4000 characters)
237
+ # We need to figure out a better way to update the current status (especially when it is split over multiple messages)
238
+ # Maybe a grafana dashboard? Or maybe a count / eta...
239
+
240
+ # await self.post_deploy_summary()
236
241
 
237
242
  @tracer.start_as_current_span("post_init_summary")
238
- async def post_deploy_summary(self):
243
+ async def post_deploy_summary(self) -> None:
239
244
  def get_app_formatted(app: str) -> str:
240
245
  if app in self.successful_apps:
241
246
  return f":tick: `{app}`"
@@ -254,7 +259,8 @@ class Deployer:
254
259
  f" `{settings.CLUSTER_NAME}`, the following apps will be updated:{deltas}\nCommit Message:"
255
260
  f" {self.commit_message}"
256
261
  )
262
+ # We have a problem here; we can't update a message if it is > 4000 characters long.
257
263
  if not self.post_ts:
258
- await slack.post(message=message)
264
+ self.post_ts = await slack.post(message=message)
259
265
  else:
260
- await slack.update(ts=self.ts, message=message)
266
+ await slack.update(ts=self.post_ts, message=message)
@@ -1,7 +1,7 @@
1
1
 
2
2
  [project]
3
3
  name = "gitops"
4
- version = "0.14.0"
4
+ version = "0.14.1"
5
5
  description = "Manage multiple apps across one or more k8s clusters."
6
6
  requires-python = ">=3.12"
7
7
  readme = "README.md"
@@ -13,7 +13,7 @@
13
13
  "gitops_server": {
14
14
  "package-name": "server",
15
15
  "release-type": "python",
16
- "changelog-path": "gitops_server/CHANGELOG.md",
16
+ "changelog-path": "CHANGELOG.md",
17
17
  "extra-files": [
18
18
  {
19
19
  "type": "yaml",
@@ -25,7 +25,7 @@
25
25
  "charts/gitops": {
26
26
  "package-name": "helm",
27
27
  "release-type": "helm",
28
- "changelog-path": "charts/gitops/CHANGELOG.md"
28
+ "changelog-path": "CHANGELOG.md"
29
29
  }
30
30
  }
31
31
  }
@@ -40,7 +40,7 @@ class TestDeploy:
40
40
  r" --namespace=mynamespace sample-app-\d mock-repo",
41
41
  run_mock.call_args_list[3][0][0],
42
42
  )
43
- assert post_mock.call_count == 4
43
+ assert post_mock.call_count == 2
44
44
 
45
45
  @patch("gitops_server.workers.deployer.deploy.run")
46
46
  @patch("gitops_server.workers.deployer.deploy.Deployer.post_result")
@@ -100,7 +100,7 @@ class TestDeploy:
100
100
  r" --namespace=mynamespace sample-app-\d mock-repo",
101
101
  run_mock.call_args_list[3][0][0],
102
102
  )
103
- assert post_mock.call_count == 4
103
+ assert post_mock.call_count == 2
104
104
 
105
105
 
106
106
  class TestLoadAppDefinitions:
@@ -277,7 +277,7 @@ wheels = [
277
277
 
278
278
  [[package]]
279
279
  name = "gitops"
280
- version = "0.13.2"
280
+ version = "0.14.0"
281
281
  source = { editable = "." }
282
282
  dependencies = [
283
283
  { name = "boto3" },
@@ -1,5 +0,0 @@
1
- {
2
- ".": "0.14.0",
3
- "gitops_server": "0.15.0",
4
- "charts/gitops": "0.13.0"
5
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes