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.
- {gitops-0.14.0 → gitops-0.14.1}/.github/workflows/release-please.yaml +3 -4
- gitops-0.14.1/.release-please-manifest.json +5 -0
- {gitops-0.14.0 → gitops-0.14.1}/CHANGELOG.md +8 -0
- {gitops-0.14.0 → gitops-0.14.1}/PKG-INFO +1 -1
- {gitops-0.14.0/charts/gitops → gitops-0.14.1}/charts/gitops/CHANGELOG.md +15 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/Chart.yaml +1 -1
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/deployment.yml +1 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/__init__.py +1 -1
- {gitops-0.14.0/gitops_server → gitops-0.14.1}/gitops_server/CHANGELOG.md +7 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/deploy.py +12 -6
- {gitops-0.14.0 → gitops-0.14.1}/pyproject.toml +1 -1
- {gitops-0.14.0 → gitops-0.14.1}/release-please-config.json +2 -2
- {gitops-0.14.0 → gitops-0.14.1}/tests/test_deploy.py +2 -2
- {gitops-0.14.0 → gitops-0.14.1}/uv.lock +1 -1
- gitops-0.14.0/.release-please-manifest.json +0 -5
- gitops-0.14.0/charts/gitops/CHANGELOG.md +0 -0
- gitops-0.14.0/gitops_server/CHANGELOG.md +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/.dockerignore +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/.github/workflows/test.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/.gitignore +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/.mise.toml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/.pre-commit-config.yaml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/Dockerfile +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/LICENSE +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/README.md +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/.helmignore +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/README.md +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/_helpers.tpl +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/certificate.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/environment.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/ingress.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/issuer.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/secrets.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/service.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/templates/serviceaccount.yaml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/charts/gitops/values.yaml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/docker-compose.yml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/common/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/common/app.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/common/utils.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/core.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/main.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/py.typed +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/settings.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/shorthands.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/apps.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/async_runner.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/cli.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/exceptions.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/images.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/kube.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/tags.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops/utils/yaml.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/README.md +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/app.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/main.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/settings.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/types.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/git.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/github.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/utils/slack.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/hooks.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/deployer/worker.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/status_updater/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/gitops_server/workers/status_updater/worker.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/release.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/ruff.toml +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/secrets.example.env +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/setup.cfg +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/__init__.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/conftest.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/sample_data.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/test_app.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/test_core.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/test_git.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/test_gitops_server.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/test_utils.py +0 -0
- {gitops-0.14.0 → gitops-0.14.1}/tests/utils.py +0 -0
- {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
|
|
41
|
+
uses: stefanprodan/helm-gh-pages@master
|
|
42
42
|
with:
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
@@ -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,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
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
266
|
+
await slack.update(ts=self.post_ts, message=message)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"gitops_server": {
|
|
14
14
|
"package-name": "server",
|
|
15
15
|
"release-type": "python",
|
|
16
|
-
"changelog-path": "
|
|
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": "
|
|
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 ==
|
|
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 ==
|
|
103
|
+
assert post_mock.call_count == 2
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
class TestLoadAppDefinitions:
|
|
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
|
|
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
|