gitops 0.12.0__tar.gz → 0.12.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 (76) hide show
  1. {gitops-0.12.0 → gitops-0.12.1}/PKG-INFO +1 -1
  2. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/Chart.yaml +1 -1
  3. {gitops-0.12.0 → gitops-0.12.1}/gitops/__init__.py +1 -1
  4. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/images.py +6 -2
  5. {gitops-0.12.0 → gitops-0.12.1}/pyproject.toml +1 -1
  6. {gitops-0.12.0 → gitops-0.12.1}/.dockerignore +0 -0
  7. {gitops-0.12.0 → gitops-0.12.1}/.github/workflows/publish.yml +0 -0
  8. {gitops-0.12.0 → gitops-0.12.1}/.github/workflows/test.yml +0 -0
  9. {gitops-0.12.0 → gitops-0.12.1}/.gitignore +0 -0
  10. {gitops-0.12.0 → gitops-0.12.1}/.mise.toml +0 -0
  11. {gitops-0.12.0 → gitops-0.12.1}/.pre-commit-config.yaml +0 -0
  12. {gitops-0.12.0 → gitops-0.12.1}/Dockerfile +0 -0
  13. {gitops-0.12.0 → gitops-0.12.1}/LICENSE +0 -0
  14. {gitops-0.12.0 → gitops-0.12.1}/README.md +0 -0
  15. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/.helmignore +0 -0
  16. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/README.md +0 -0
  17. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/_helpers.tpl +0 -0
  18. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/certificate.yml +0 -0
  19. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/deployment.yml +0 -0
  20. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/environment.yml +0 -0
  21. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/ingress.yml +0 -0
  22. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/issuer.yml +0 -0
  23. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/secrets.yml +0 -0
  24. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/service.yml +0 -0
  25. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/templates/serviceaccount.yaml +0 -0
  26. {gitops-0.12.0 → gitops-0.12.1}/charts/gitops/values.yaml +0 -0
  27. {gitops-0.12.0 → gitops-0.12.1}/docker-compose.yml +0 -0
  28. {gitops-0.12.0 → gitops-0.12.1}/gitops/common/__init__.py +0 -0
  29. {gitops-0.12.0 → gitops-0.12.1}/gitops/common/app.py +0 -0
  30. {gitops-0.12.0 → gitops-0.12.1}/gitops/common/utils.py +0 -0
  31. {gitops-0.12.0 → gitops-0.12.1}/gitops/core.py +0 -0
  32. {gitops-0.12.0 → gitops-0.12.1}/gitops/main.py +0 -0
  33. {gitops-0.12.0 → gitops-0.12.1}/gitops/py.typed +0 -0
  34. {gitops-0.12.0 → gitops-0.12.1}/gitops/settings.py +0 -0
  35. {gitops-0.12.0 → gitops-0.12.1}/gitops/shorthands.py +0 -0
  36. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/__init__.py +0 -0
  37. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/apps.py +0 -0
  38. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/async_runner.py +0 -0
  39. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/cli.py +0 -0
  40. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/exceptions.py +0 -0
  41. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/kube.py +0 -0
  42. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/tags.py +0 -0
  43. {gitops-0.12.0 → gitops-0.12.1}/gitops/utils/yaml.py +0 -0
  44. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/README.md +0 -0
  45. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/__init__.py +0 -0
  46. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/app.py +0 -0
  47. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/main.py +0 -0
  48. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/settings.py +0 -0
  49. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/types.py +0 -0
  50. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/utils/__init__.py +0 -0
  51. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/utils/git.py +0 -0
  52. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/utils/github.py +0 -0
  53. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/utils/slack.py +0 -0
  54. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/workers/__init__.py +0 -0
  55. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/workers/deployer/__init__.py +0 -0
  56. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/workers/deployer/deploy.py +0 -0
  57. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/workers/deployer/hooks.py +0 -0
  58. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/workers/deployer/worker.py +0 -0
  59. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/workers/status_updater/__init__.py +0 -0
  60. {gitops-0.12.0 → gitops-0.12.1}/gitops_server/workers/status_updater/worker.py +0 -0
  61. {gitops-0.12.0 → gitops-0.12.1}/release.py +0 -0
  62. {gitops-0.12.0 → gitops-0.12.1}/ruff.toml +0 -0
  63. {gitops-0.12.0 → gitops-0.12.1}/secrets.example.env +0 -0
  64. {gitops-0.12.0 → gitops-0.12.1}/setup.cfg +0 -0
  65. {gitops-0.12.0 → gitops-0.12.1}/tests/__init__.py +0 -0
  66. {gitops-0.12.0 → gitops-0.12.1}/tests/conftest.py +0 -0
  67. {gitops-0.12.0 → gitops-0.12.1}/tests/sample_data.py +0 -0
  68. {gitops-0.12.0 → gitops-0.12.1}/tests/test_app.py +0 -0
  69. {gitops-0.12.0 → gitops-0.12.1}/tests/test_core.py +0 -0
  70. {gitops-0.12.0 → gitops-0.12.1}/tests/test_deploy.py +0 -0
  71. {gitops-0.12.0 → gitops-0.12.1}/tests/test_git.py +0 -0
  72. {gitops-0.12.0 → gitops-0.12.1}/tests/test_gitops_server.py +0 -0
  73. {gitops-0.12.0 → gitops-0.12.1}/tests/test_utils.py +0 -0
  74. {gitops-0.12.0 → gitops-0.12.1}/tests/utils.py +0 -0
  75. {gitops-0.12.0 → gitops-0.12.1}/tests/webhook_sample_data.py +0 -0
  76. {gitops-0.12.0 → gitops-0.12.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gitops
3
- Version: 0.12.0
3
+ Version: 0.12.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
  License-File: LICENSE
@@ -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.12.0
5
+ version: 0.12.1
@@ -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.12.0"
9
+ __version__ = "0.12.1"
10
10
 
11
11
 
12
12
  # Checking gitops version matches cluster repo version.
@@ -46,13 +46,17 @@ def get_latest_image(repository_name: str, prefix: str, ecr_repository: str | No
46
46
  image_tag = f"{prefix}-latest" if prefix else "latest"
47
47
 
48
48
  def add_image_to_results(image: "ImageDetailTypeDef") -> None:
49
+ """This function adds the image to the results list if it matches the prefix and is not the latest image.
50
+
51
+ We want to ignore the latest image tag otherwise we will never diff anything other than `develop-latest` etc.
52
+ """
49
53
  if prefix != "":
50
54
  if prefix_tags := [
51
- tag for tag in image["imageTags"] if tag.startswith(prefix + "-") and "latest" not in tag
55
+ tag for tag in image["imageTags"] if tag.startswith(prefix + "-") and not tag.endswith("latest")
52
56
  ]:
53
57
  results.append((prefix_tags[0], image["imagePushedAt"]))
54
58
  else:
55
- if prefix_tags := [tag for tag in image["imageTags"] if "-" not in tag and "latest" not in tag]:
59
+ if prefix_tags := [tag for tag in image["imageTags"] if "-" not in tag and not tag.endswith("latest")]:
56
60
  results.append((prefix_tags[0], image["imagePushedAt"]))
57
61
 
58
62
  try:
@@ -1,7 +1,7 @@
1
1
 
2
2
  [project]
3
3
  name = "gitops"
4
- version = "0.12.0"
4
+ version = "0.12.1"
5
5
  description = "Manage multiple apps across one or more k8s clusters."
6
6
  requires-python = ">=3.12"
7
7
  readme = "README.md"
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