gitops 0.11.4__tar.gz → 0.11.5__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.11.4 → gitops-0.11.5}/PKG-INFO +10 -5
- {gitops-0.11.4 → gitops-0.11.5}/README.md +9 -4
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/Chart.yaml +1 -1
- {gitops-0.11.4 → gitops-0.11.5}/gitops/__init__.py +1 -1
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/deploy.py +3 -0
- {gitops-0.11.4 → gitops-0.11.5}/pyproject.toml +1 -1
- {gitops-0.11.4 → gitops-0.11.5}/tests/test_deploy.py +5 -5
- {gitops-0.11.4 → gitops-0.11.5}/.dockerignore +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/.github/workflows/publish.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/.github/workflows/test.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/.gitignore +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/.mise.toml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/.pre-commit-config.yaml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/Dockerfile +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/LICENSE +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/.helmignore +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/README.md +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/_helpers.tpl +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/certificate.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/deployment.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/environment.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/ingress.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/issuer.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/secrets.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/service.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/serviceaccount.yaml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/values.yaml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/docker-compose.yml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/common/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/common/app.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/common/utils.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/core.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/db.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/main.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/py.typed +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/settings.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/shorthands.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/apps.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/async_runner.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/cli.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/exceptions.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/images.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/kube.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/tags.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/yaml.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/README.md +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/app.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/main.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/settings.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/types.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/git.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/github.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/slack.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/hooks.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/worker.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/status_updater/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/status_updater/worker.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/poetry.lock +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/release.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/ruff.toml +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/secrets.example.env +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/setup.cfg +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/__init__.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/sample_data.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/test_app.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/test_core.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/test_git.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/test_gitops_server.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/test_utils.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/utils.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/tests/webhook_sample_data.py +0 -0
- {gitops-0.11.4 → gitops-0.11.5}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: gitops
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.5
|
|
4
4
|
Summary: Manage multiple apps across one or more k8s clusters.
|
|
5
5
|
Author-email: Jarek Głowacki <jarekwg@gmail.com>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -84,7 +84,12 @@ subjects:
|
|
|
84
84
|
namespace: gitops
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
1.
|
|
90
|
-
|
|
87
|
+
## Contribution
|
|
88
|
+
We're using [releaseplease](https://github.com/googleapis/release-please), to publish a new version do the following:
|
|
89
|
+
1. Checkout a feature branch and make the changes
|
|
90
|
+
1. Make sure to follow instructions for writing commits by [releaseplease](https://github.com/googleapis/release-please)
|
|
91
|
+
1. fix: which represents bug fixes, and correlates to a SemVer patch.
|
|
92
|
+
2. feat: which represents a new feature, and correlates to a SemVer minor.
|
|
93
|
+
3. feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
|
|
94
|
+
2. Push changes and get the PR approved
|
|
95
|
+
3. Once it is merged; an additional PR containing the release changes needs to be merged to create a release.
|
|
@@ -60,7 +60,12 @@ subjects:
|
|
|
60
60
|
namespace: gitops
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
1.
|
|
66
|
-
|
|
63
|
+
## Contribution
|
|
64
|
+
We're using [releaseplease](https://github.com/googleapis/release-please), to publish a new version do the following:
|
|
65
|
+
1. Checkout a feature branch and make the changes
|
|
66
|
+
1. Make sure to follow instructions for writing commits by [releaseplease](https://github.com/googleapis/release-please)
|
|
67
|
+
1. fix: which represents bug fixes, and correlates to a SemVer patch.
|
|
68
|
+
2. feat: which represents a new feature, and correlates to a SemVer minor.
|
|
69
|
+
3. feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
|
|
70
|
+
2. Push changes and get the PR approved
|
|
71
|
+
3. Once it is merged; an additional PR containing the release changes needs to be merged to create a release.
|
|
@@ -21,6 +21,7 @@ BASE_REPO_DIR = "/var/gitops/repos"
|
|
|
21
21
|
ROLE_ARN = f"arn:aws:iam::{settings.ACCOUNT_ID}:role/GitopsAccess"
|
|
22
22
|
logger = logging.getLogger("gitops")
|
|
23
23
|
GITOPS_MAX_PARALLEL_DEPLOYS = os.environ.get("GITOPS_MAX_PARALLEL_DEPLOYS", "5")
|
|
24
|
+
MAX_HELM_HISTORY = 3
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
@tracer.start_as_current_span("post_init_summary")
|
|
@@ -185,6 +186,7 @@ class Deployer:
|
|
|
185
186
|
with tracer.start_as_current_span("helm_upgrade"):
|
|
186
187
|
result = await run(
|
|
187
188
|
"helm secrets upgrade --create-namespace"
|
|
189
|
+
f" --history-max {MAX_HELM_HISTORY}"
|
|
188
190
|
" --install"
|
|
189
191
|
" --timeout=600s"
|
|
190
192
|
f"{' --set skip_migrations=true' if self.skip_migrations else ''}"
|
|
@@ -207,6 +209,7 @@ class Deployer:
|
|
|
207
209
|
with tracer.start_as_current_span("helm_upgrade"):
|
|
208
210
|
result = await run(
|
|
209
211
|
"helm secrets upgrade --create-namespace"
|
|
212
|
+
f" --history-max {MAX_HELM_HISTORY}"
|
|
210
213
|
" --install"
|
|
211
214
|
" --timeout=600s"
|
|
212
215
|
f"{' --set skip_migrations=true' if self.skip_migrations else ''}"
|
|
@@ -29,13 +29,13 @@ class TestDeploy:
|
|
|
29
29
|
assert run_mock.call_count == 4
|
|
30
30
|
assert run_mock.call_args_list[0][0][0] == "cd mock-repo; helm dependency build"
|
|
31
31
|
assert re.match(
|
|
32
|
-
r"helm secrets upgrade --create-namespace --install --timeout=600s -f .+\.yml"
|
|
32
|
+
r"helm secrets upgrade --create-namespace --history-max 3 --install --timeout=600s -f .+\.yml"
|
|
33
33
|
r" --namespace=mynamespace sample-app-\d mock-repo",
|
|
34
34
|
run_mock.call_args_list[1][0][0],
|
|
35
35
|
)
|
|
36
36
|
assert run_mock.call_args_list[2][0][0] == "cd mock-repo; helm dependency build"
|
|
37
37
|
assert re.match(
|
|
38
|
-
r"helm secrets upgrade --create-namespace --install --timeout=600s -f .+\.yml"
|
|
38
|
+
r"helm secrets upgrade --create-namespace --history-max 3 --install --timeout=600s -f .+\.yml"
|
|
39
39
|
r" --namespace=mynamespace sample-app-\d mock-repo",
|
|
40
40
|
run_mock.call_args_list[3][0][0],
|
|
41
41
|
)
|
|
@@ -78,7 +78,7 @@ class TestDeploy:
|
|
|
78
78
|
assert run_mock.call_count == 2
|
|
79
79
|
assert run_mock.call_args_list[0][0][0] == "helm repo add brigade https://helm.charts"
|
|
80
80
|
assert re.match(
|
|
81
|
-
r"helm secrets upgrade --create-namespace --install --timeout=600s -f .+\.yml"
|
|
81
|
+
r"helm secrets upgrade --create-namespace --history-max 3 --install --timeout=600s -f .+\.yml"
|
|
82
82
|
r" --namespace=mynamespace helm_app brigade/brigade",
|
|
83
83
|
run_mock.call_args_list[1][0][0],
|
|
84
84
|
)
|
|
@@ -99,13 +99,13 @@ class TestDeploy:
|
|
|
99
99
|
assert run_mock.call_count == 4
|
|
100
100
|
assert run_mock.call_args_list[0][0][0] == "cd mock-repo; helm dependency build"
|
|
101
101
|
assert re.match(
|
|
102
|
-
r"helm secrets upgrade --create-namespace --install --timeout=600s --set skip_migrations=true -f .+\.yml"
|
|
102
|
+
r"helm secrets upgrade --create-namespace --history-max 3 --install --timeout=600s --set skip_migrations=true -f .+\.yml"
|
|
103
103
|
r" --namespace=mynamespace sample-app-\d mock-repo",
|
|
104
104
|
run_mock.call_args_list[1][0][0],
|
|
105
105
|
)
|
|
106
106
|
assert run_mock.call_args_list[2][0][0] == "cd mock-repo; helm dependency build"
|
|
107
107
|
assert re.match(
|
|
108
|
-
r"helm secrets upgrade --create-namespace --install --timeout=600s --set skip_migrations=true -f .+\.yml"
|
|
108
|
+
r"helm secrets upgrade --create-namespace --history-max 3 --install --timeout=600s --set skip_migrations=true -f .+\.yml"
|
|
109
109
|
r" --namespace=mynamespace sample-app-\d mock-repo",
|
|
110
110
|
run_mock.call_args_list[3][0][0],
|
|
111
111
|
)
|
|
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
|
|
File without changes
|