gitops 0.14.1__tar.gz → 1.0.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 (83) hide show
  1. gitops-1.0.1/.release-please-manifest.json +5 -0
  2. {gitops-0.14.1 → gitops-1.0.1}/CHANGELOG.md +23 -0
  3. {gitops-0.14.1 → gitops-1.0.1}/Dockerfile +1 -1
  4. {gitops-0.14.1 → gitops-1.0.1}/PKG-INFO +12 -8
  5. {gitops-0.14.1 → gitops-1.0.1}/README.md +8 -5
  6. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/CHANGELOG.md +7 -0
  7. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/Chart.yaml +1 -1
  8. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/secrets.yml +0 -1
  9. {gitops-0.14.1 → gitops-1.0.1}/gitops/__init__.py +2 -1
  10. {gitops-0.14.1 → gitops-1.0.1}/pyproject.toml +2 -2
  11. {gitops-0.14.1 → gitops-1.0.1}/release-please-config.json +3 -3
  12. gitops-1.0.1/uv.lock +1424 -0
  13. gitops-0.14.1/.release-please-manifest.json +0 -5
  14. gitops-0.14.1/uv.lock +0 -1291
  15. {gitops-0.14.1 → gitops-1.0.1}/.dockerignore +0 -0
  16. {gitops-0.14.1 → gitops-1.0.1}/.github/workflows/release-please.yaml +0 -0
  17. {gitops-0.14.1 → gitops-1.0.1}/.github/workflows/test.yml +0 -0
  18. {gitops-0.14.1 → gitops-1.0.1}/.gitignore +0 -0
  19. {gitops-0.14.1 → gitops-1.0.1}/.mise.toml +0 -0
  20. {gitops-0.14.1 → gitops-1.0.1}/.pre-commit-config.yaml +0 -0
  21. {gitops-0.14.1 → gitops-1.0.1}/LICENSE +0 -0
  22. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/.helmignore +0 -0
  23. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/README.md +0 -0
  24. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/_helpers.tpl +0 -0
  25. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/certificate.yml +0 -0
  26. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/deployment.yml +0 -0
  27. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/environment.yml +0 -0
  28. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/ingress.yml +0 -0
  29. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/issuer.yml +0 -0
  30. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/service.yml +0 -0
  31. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/templates/serviceaccount.yaml +0 -0
  32. {gitops-0.14.1 → gitops-1.0.1}/charts/gitops/values.yaml +0 -0
  33. {gitops-0.14.1 → gitops-1.0.1}/docker-compose.yml +0 -0
  34. {gitops-0.14.1 → gitops-1.0.1}/gitops/common/__init__.py +0 -0
  35. {gitops-0.14.1 → gitops-1.0.1}/gitops/common/app.py +0 -0
  36. {gitops-0.14.1 → gitops-1.0.1}/gitops/common/utils.py +0 -0
  37. {gitops-0.14.1 → gitops-1.0.1}/gitops/core.py +0 -0
  38. {gitops-0.14.1 → gitops-1.0.1}/gitops/main.py +0 -0
  39. {gitops-0.14.1 → gitops-1.0.1}/gitops/py.typed +0 -0
  40. {gitops-0.14.1 → gitops-1.0.1}/gitops/settings.py +0 -0
  41. {gitops-0.14.1 → gitops-1.0.1}/gitops/shorthands.py +0 -0
  42. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/__init__.py +0 -0
  43. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/apps.py +0 -0
  44. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/async_runner.py +0 -0
  45. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/cli.py +0 -0
  46. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/exceptions.py +0 -0
  47. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/images.py +0 -0
  48. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/kube.py +0 -0
  49. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/tags.py +0 -0
  50. {gitops-0.14.1 → gitops-1.0.1}/gitops/utils/yaml.py +0 -0
  51. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/CHANGELOG.md +0 -0
  52. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/README.md +0 -0
  53. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/__init__.py +0 -0
  54. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/app.py +0 -0
  55. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/main.py +0 -0
  56. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/settings.py +0 -0
  57. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/types.py +0 -0
  58. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/utils/__init__.py +0 -0
  59. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/utils/git.py +0 -0
  60. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/utils/github.py +0 -0
  61. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/utils/slack.py +0 -0
  62. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/workers/__init__.py +0 -0
  63. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/workers/deployer/__init__.py +0 -0
  64. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/workers/deployer/deploy.py +0 -0
  65. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/workers/deployer/hooks.py +0 -0
  66. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/workers/deployer/worker.py +0 -0
  67. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/workers/status_updater/__init__.py +0 -0
  68. {gitops-0.14.1 → gitops-1.0.1}/gitops_server/workers/status_updater/worker.py +0 -0
  69. {gitops-0.14.1 → gitops-1.0.1}/release.py +0 -0
  70. {gitops-0.14.1 → gitops-1.0.1}/ruff.toml +0 -0
  71. {gitops-0.14.1 → gitops-1.0.1}/secrets.example.env +0 -0
  72. {gitops-0.14.1 → gitops-1.0.1}/setup.cfg +0 -0
  73. {gitops-0.14.1 → gitops-1.0.1}/tests/__init__.py +0 -0
  74. {gitops-0.14.1 → gitops-1.0.1}/tests/conftest.py +0 -0
  75. {gitops-0.14.1 → gitops-1.0.1}/tests/sample_data.py +0 -0
  76. {gitops-0.14.1 → gitops-1.0.1}/tests/test_app.py +0 -0
  77. {gitops-0.14.1 → gitops-1.0.1}/tests/test_core.py +0 -0
  78. {gitops-0.14.1 → gitops-1.0.1}/tests/test_deploy.py +0 -0
  79. {gitops-0.14.1 → gitops-1.0.1}/tests/test_git.py +0 -0
  80. {gitops-0.14.1 → gitops-1.0.1}/tests/test_gitops_server.py +0 -0
  81. {gitops-0.14.1 → gitops-1.0.1}/tests/test_utils.py +0 -0
  82. {gitops-0.14.1 → gitops-1.0.1}/tests/utils.py +0 -0
  83. {gitops-0.14.1 → gitops-1.0.1}/tests/webhook_sample_data.py +0 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ ".": "1.0.1",
3
+ "gitops_server": "0.15.1",
4
+ "charts/gitops": "0.13.3"
5
+ }
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.1](https://github.com/uptick/gitops/compare/cli-v1.0.0...cli-v1.0.1) (2025-01-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * do not use --reload on server ([d785d88](https://github.com/uptick/gitops/commit/d785d88dfae8d3fe1073a7807933a68fd56dc975))
9
+
10
+ ## [1.0.0](https://github.com/uptick/gitops/compare/cli-v0.14.1...cli-v1.0.0) (2025-01-16)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * exit early if the gitops version is below the cluster minimum version
16
+
17
+ ### Features
18
+
19
+ * exit early if the gitops version is below the cluster minimum version ([790ef4e](https://github.com/uptick/gitops/commit/790ef4e75b92b5a68fdddc0b0d215a224ac6b5c0))
20
+
21
+
22
+ ### Documentation
23
+
24
+ * clarify installation instructions ([5171917](https://github.com/uptick/gitops/commit/517191793c3a73eff9a02cb6bdd9ffe1bbaf2ee8))
25
+
3
26
  ## [0.14.1](https://github.com/uptick/gitops/compare/cli-v0.14.0...cli-v0.14.1) (2024-12-06)
4
27
 
5
28
 
@@ -50,4 +50,4 @@ ENV PYTHONPATH="$PYTHONPATH:/app"
50
50
  ENV ACCESS_LOG=""
51
51
 
52
52
 
53
- CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "gitops_server.main:app", "--reload"]
53
+ CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "gitops_server.main:app"]
@@ -1,8 +1,9 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: gitops
3
- Version: 0.14.1
3
+ Version: 1.0.1
4
4
  Summary: Manage multiple apps across one or more k8s clusters.
5
5
  Author-email: Jarek Głowacki <jarekwg@gmail.com>
6
+ License-File: LICENSE
6
7
  Requires-Python: >=3.12
7
8
  Requires-Dist: boto3==1.35.4
8
9
  Requires-Dist: colorama>=0.4.4
@@ -19,7 +20,7 @@ Requires-Dist: kubernetes-asyncio>=25.1.2; extra == 'server'
19
20
  Requires-Dist: sentry-sdk>=1.3.0; extra == 'server'
20
21
  Requires-Dist: slack-sdk>=3.33.5; extra == 'server'
21
22
  Requires-Dist: uptick-observability[fastapi]>=0.2.2; extra == 'server'
22
- Requires-Dist: uvicorn>=0.17.6; extra == 'server'
23
+ Requires-Dist: uvicorn>=0.34.0; extra == 'server'
23
24
  Description-Content-Type: text/markdown
24
25
 
25
26
  # Gitops
@@ -40,7 +41,6 @@ The tool has two halves:
40
41
  - Gitops Server - an instance of this gets deployed to each of your kubernetes clusters, listening on changes made to your gitops cluster repo. The server's responsibility is to update the deployments on the cluster it lives on to match the app specifications in the repo.
41
42
  - Gitops CLI - this is a tool that you can use to interact comfortably with your cluster repo. It allows listing all deployed applications, what images they're presently running on, and which clusters they live on. It also provides numerous operations that can be applied to one or more apps at a time, such as bumping to a newer version of an image, or running a particular command across your app cohort.
42
43
 
43
- You can install the CLI tool with: `pip install gitops`
44
44
 
45
45
  Currently Kubernetes/Helm is the only supported cluster interface. All app deployments are performed as applications of Helm charts.
46
46
 
@@ -60,13 +60,17 @@ This is a git repository that you set up, where you list out all of your applica
60
60
  +- jobs
61
61
  </pre>
62
62
 
63
- ## Installation
63
+ ## Gitops CLI Installation
64
64
 
65
- Secrets should be placed in `secrets.env`. The example file `secrets.example.env` has the environment variables you will need to supply.
65
+ 1. Install the CLI tool with: `uv tool install gitops` and upgrade it with `uv tool upgrade gitops`.
66
+
67
+ 2. Set up the environment variable `GITOPS_APPS_DIRECTORY` to invoke gitops from any directory.
66
68
 
67
- Add `export GITOPS_APPS_DIRECTORY=~/<cluster-apps-folder>` to invoke gitops from any directory.
69
+ ## Gitops Server Installation
70
+
71
+ Secrets should be placed in `secrets.env`. The example file `secrets.example.env` has the environment variables you will need to supply.
68
72
 
69
- Ensure that gitops has `edit` access to the namespace it is deploying to. An example RoleBinding is:
73
+ Ensure that the gitops service account has `edit` access to the namespace it is deploying to. An example RoleBinding is:
70
74
 
71
75
  ```
72
76
  apiVersion: rbac.authorization.k8s.io/v1
@@ -16,7 +16,6 @@ The tool has two halves:
16
16
  - Gitops Server - an instance of this gets deployed to each of your kubernetes clusters, listening on changes made to your gitops cluster repo. The server's responsibility is to update the deployments on the cluster it lives on to match the app specifications in the repo.
17
17
  - Gitops CLI - this is a tool that you can use to interact comfortably with your cluster repo. It allows listing all deployed applications, what images they're presently running on, and which clusters they live on. It also provides numerous operations that can be applied to one or more apps at a time, such as bumping to a newer version of an image, or running a particular command across your app cohort.
18
18
 
19
- You can install the CLI tool with: `pip install gitops`
20
19
 
21
20
  Currently Kubernetes/Helm is the only supported cluster interface. All app deployments are performed as applications of Helm charts.
22
21
 
@@ -36,13 +35,17 @@ This is a git repository that you set up, where you list out all of your applica
36
35
  +- jobs
37
36
  </pre>
38
37
 
39
- ## Installation
38
+ ## Gitops CLI Installation
40
39
 
41
- Secrets should be placed in `secrets.env`. The example file `secrets.example.env` has the environment variables you will need to supply.
40
+ 1. Install the CLI tool with: `uv tool install gitops` and upgrade it with `uv tool upgrade gitops`.
41
+
42
+ 2. Set up the environment variable `GITOPS_APPS_DIRECTORY` to invoke gitops from any directory.
42
43
 
43
- Add `export GITOPS_APPS_DIRECTORY=~/<cluster-apps-folder>` to invoke gitops from any directory.
44
+ ## Gitops Server Installation
45
+
46
+ Secrets should be placed in `secrets.env`. The example file `secrets.example.env` has the environment variables you will need to supply.
44
47
 
45
- Ensure that gitops has `edit` access to the namespace it is deploying to. An example RoleBinding is:
48
+ Ensure that the gitops service account has `edit` access to the namespace it is deploying to. An example RoleBinding is:
46
49
 
47
50
  ```
48
51
  apiVersion: rbac.authorization.k8s.io/v1
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.3](https://github.com/uptick/gitops/compare/helm-v0.13.2...helm-v0.13.3) (2024-12-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove slack_url from helm chart ([aa4bf8b](https://github.com/uptick/gitops/commit/aa4bf8bbef5fe598149db554660eedc1b3a587fb))
9
+
3
10
  ## [0.13.2](https://github.com/uptick/gitops/compare/helm-v0.13.1...helm-v0.13.2) (2024-12-06)
4
11
 
5
12
 
@@ -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.2
5
+ version: 0.13.3
@@ -5,7 +5,6 @@ metadata:
5
5
  type: Opaque
6
6
  stringData:
7
7
  ACCOUNT_ID: {{ .Values.secrets.ACCOUNT_ID | quote}}
8
- SLACK_URL: {{ .Values.secrets.SLACK_URL| quote}}
9
8
  GITHUB_OAUTH_TOKEN: {{ .Values.secrets.GITHUB_OAUTH_TOKEN| quote}}
10
9
  GITHUB_WEBHOOK_KEY: {{ .Values.secrets.GITHUB_WEBHOOK_KEY| quote}}
11
10
  SENTRY_DSN: {{ .Values.secrets.SENTRY_DSN| quote}}
@@ -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.1"
9
+ __version__ = "1.0.1"
10
10
 
11
11
 
12
12
  # Checking gitops version matches cluster repo version.
@@ -27,5 +27,6 @@ if versions_path.exists():
27
27
  f" requirement {success(min_gitops_version)}.",
28
28
  file=sys.stderr,
29
29
  )
30
+ sys.exit(1)
30
31
 
31
32
  __all__ = ["App", "get_app_details", "get_apps", "__version__"]
@@ -1,7 +1,7 @@
1
1
 
2
2
  [project]
3
3
  name = "gitops"
4
- version = "0.14.1"
4
+ version = "1.0.1"
5
5
  description = "Manage multiple apps across one or more k8s clusters."
6
6
  requires-python = ">=3.12"
7
7
  readme = "README.md"
@@ -24,7 +24,7 @@ gitops = "gitops.main:program.run"
24
24
  [project.optional-dependencies]
25
25
  server = [
26
26
  "httpx>=0.23.0,<0.24.0",
27
- "uvicorn>=0.17.6",
27
+ "uvicorn>=0.34.0",
28
28
  "fastapi==0.109.2",
29
29
  "kubernetes_asyncio>=25.1.2",
30
30
  "sentry-sdk>=1.3.0",
@@ -16,9 +16,9 @@
16
16
  "changelog-path": "CHANGELOG.md",
17
17
  "extra-files": [
18
18
  {
19
- "type": "yaml",
20
- "path": "charts/gitops/Chart.yaml",
21
- "jsonpath": "$.appVersion"
19
+ "type": "yaml",
20
+ "path": "../charts/gitops/Chart.yaml",
21
+ "jsonpath": "$.appVersion"
22
22
  }
23
23
  ]
24
24
  },