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.
Files changed (77) hide show
  1. {gitops-0.11.4 → gitops-0.11.5}/PKG-INFO +10 -5
  2. {gitops-0.11.4 → gitops-0.11.5}/README.md +9 -4
  3. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/Chart.yaml +1 -1
  4. {gitops-0.11.4 → gitops-0.11.5}/gitops/__init__.py +1 -1
  5. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/deploy.py +3 -0
  6. {gitops-0.11.4 → gitops-0.11.5}/pyproject.toml +1 -1
  7. {gitops-0.11.4 → gitops-0.11.5}/tests/test_deploy.py +5 -5
  8. {gitops-0.11.4 → gitops-0.11.5}/.dockerignore +0 -0
  9. {gitops-0.11.4 → gitops-0.11.5}/.github/workflows/publish.yml +0 -0
  10. {gitops-0.11.4 → gitops-0.11.5}/.github/workflows/test.yml +0 -0
  11. {gitops-0.11.4 → gitops-0.11.5}/.gitignore +0 -0
  12. {gitops-0.11.4 → gitops-0.11.5}/.mise.toml +0 -0
  13. {gitops-0.11.4 → gitops-0.11.5}/.pre-commit-config.yaml +0 -0
  14. {gitops-0.11.4 → gitops-0.11.5}/Dockerfile +0 -0
  15. {gitops-0.11.4 → gitops-0.11.5}/LICENSE +0 -0
  16. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/.helmignore +0 -0
  17. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/README.md +0 -0
  18. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/_helpers.tpl +0 -0
  19. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/certificate.yml +0 -0
  20. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/deployment.yml +0 -0
  21. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/environment.yml +0 -0
  22. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/ingress.yml +0 -0
  23. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/issuer.yml +0 -0
  24. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/secrets.yml +0 -0
  25. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/service.yml +0 -0
  26. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/templates/serviceaccount.yaml +0 -0
  27. {gitops-0.11.4 → gitops-0.11.5}/charts/gitops/values.yaml +0 -0
  28. {gitops-0.11.4 → gitops-0.11.5}/docker-compose.yml +0 -0
  29. {gitops-0.11.4 → gitops-0.11.5}/gitops/common/__init__.py +0 -0
  30. {gitops-0.11.4 → gitops-0.11.5}/gitops/common/app.py +0 -0
  31. {gitops-0.11.4 → gitops-0.11.5}/gitops/common/utils.py +0 -0
  32. {gitops-0.11.4 → gitops-0.11.5}/gitops/core.py +0 -0
  33. {gitops-0.11.4 → gitops-0.11.5}/gitops/db.py +0 -0
  34. {gitops-0.11.4 → gitops-0.11.5}/gitops/main.py +0 -0
  35. {gitops-0.11.4 → gitops-0.11.5}/gitops/py.typed +0 -0
  36. {gitops-0.11.4 → gitops-0.11.5}/gitops/settings.py +0 -0
  37. {gitops-0.11.4 → gitops-0.11.5}/gitops/shorthands.py +0 -0
  38. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/__init__.py +0 -0
  39. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/apps.py +0 -0
  40. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/async_runner.py +0 -0
  41. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/cli.py +0 -0
  42. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/exceptions.py +0 -0
  43. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/images.py +0 -0
  44. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/kube.py +0 -0
  45. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/tags.py +0 -0
  46. {gitops-0.11.4 → gitops-0.11.5}/gitops/utils/yaml.py +0 -0
  47. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/README.md +0 -0
  48. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/__init__.py +0 -0
  49. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/app.py +0 -0
  50. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/main.py +0 -0
  51. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/settings.py +0 -0
  52. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/types.py +0 -0
  53. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/__init__.py +0 -0
  54. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/git.py +0 -0
  55. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/github.py +0 -0
  56. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/utils/slack.py +0 -0
  57. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/__init__.py +0 -0
  58. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/__init__.py +0 -0
  59. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/hooks.py +0 -0
  60. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/deployer/worker.py +0 -0
  61. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/status_updater/__init__.py +0 -0
  62. {gitops-0.11.4 → gitops-0.11.5}/gitops_server/workers/status_updater/worker.py +0 -0
  63. {gitops-0.11.4 → gitops-0.11.5}/poetry.lock +0 -0
  64. {gitops-0.11.4 → gitops-0.11.5}/release.py +0 -0
  65. {gitops-0.11.4 → gitops-0.11.5}/ruff.toml +0 -0
  66. {gitops-0.11.4 → gitops-0.11.5}/secrets.example.env +0 -0
  67. {gitops-0.11.4 → gitops-0.11.5}/setup.cfg +0 -0
  68. {gitops-0.11.4 → gitops-0.11.5}/tests/__init__.py +0 -0
  69. {gitops-0.11.4 → gitops-0.11.5}/tests/sample_data.py +0 -0
  70. {gitops-0.11.4 → gitops-0.11.5}/tests/test_app.py +0 -0
  71. {gitops-0.11.4 → gitops-0.11.5}/tests/test_core.py +0 -0
  72. {gitops-0.11.4 → gitops-0.11.5}/tests/test_git.py +0 -0
  73. {gitops-0.11.4 → gitops-0.11.5}/tests/test_gitops_server.py +0 -0
  74. {gitops-0.11.4 → gitops-0.11.5}/tests/test_utils.py +0 -0
  75. {gitops-0.11.4 → gitops-0.11.5}/tests/utils.py +0 -0
  76. {gitops-0.11.4 → gitops-0.11.5}/tests/webhook_sample_data.py +0 -0
  77. {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.4
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
- # Making a release
88
-
89
- 1. Run `make release` to set tag version the multiple required locations.
90
- 2. Create a github release. Set the release tag to match the version number used. The github pipeline will do the following: Create a new version of the chart, create a docker image and release a new python library version to pypi.
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
- # Making a release
64
-
65
- 1. Run `make release` to set tag version the multiple required locations.
66
- 2. Create a github release. Set the release tag to match the version number used. The github pipeline will do the following: Create a new version of the chart, create a docker image and release a new python library version to pypi.
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.
@@ -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.11.4
5
+ version: 0.11.5
@@ -4,7 +4,7 @@ from pathlib import Path
4
4
 
5
5
  from .utils.cli import success, warning
6
6
 
7
- __version__ = "0.11.4"
7
+ __version__ = "0.11.5"
8
8
 
9
9
 
10
10
  # Checking gitops version matches cluster repo version.
@@ -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 ''}"
@@ -1,7 +1,7 @@
1
1
 
2
2
  [project]
3
3
  name = "gitops"
4
- version = "0.11.4"
4
+ version = "0.11.5"
5
5
  description = "Manage multiple apps across one or more k8s clusters."
6
6
  requires-python = ">=3.12"
7
7
  readme = "README.md"
@@ -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