gitops 0.9.21__tar.gz → 0.9.23__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.9.21 → gitops-0.9.23}/PKG-INFO +2 -1
- {gitops-0.9.21 → gitops-0.9.23}/gitops/__init__.py +1 -1
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/apps.py +9 -0
- {gitops-0.9.21 → gitops-0.9.23}/pyproject.toml +1 -1
- {gitops-0.9.21 → gitops-0.9.23}/LICENSE +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/common/__init__.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/common/app.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/common/utils.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/core.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/db.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/main.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/monkeypatches.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/py.typed +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/settings.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/shorthands.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/__init__.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/async_runner.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/cli.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/exceptions.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/images.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/kube.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/tags.py +0 -0
- {gitops-0.9.21 → gitops-0.9.23}/gitops/utils/yaml.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitops
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.23
|
|
4
4
|
Summary: Manage multiple apps across one or more k8s clusters.
|
|
5
5
|
License: BSD
|
|
6
6
|
Author: Jarek Głowacki
|
|
@@ -10,6 +10,7 @@ Classifier: License :: Other/Proprietary License
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
14
|
Provides-Extra: server
|
|
14
15
|
Requires-Dist: boto3
|
|
15
16
|
Requires-Dist: colorama (>=0.4.4,<0.5.0)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
+
from pathlib import PosixPath
|
|
2
3
|
from typing import List, Union
|
|
3
4
|
|
|
4
5
|
from colorama import Fore
|
|
@@ -15,6 +16,12 @@ from .images import colour_image
|
|
|
15
16
|
from .tags import colour_tags, validate_tags
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
def is_valid_app_directory(directory: PosixPath) -> bool:
|
|
20
|
+
files = ["deployment.yml", "secrets.yml"]
|
|
21
|
+
file_paths = [(directory / file).is_file() for file in files]
|
|
22
|
+
return all(file_paths)
|
|
23
|
+
|
|
24
|
+
|
|
18
25
|
def get_app_details(app_name: str, load_secrets: bool = True) -> App:
|
|
19
26
|
account_id = get_account_id() if load_secrets else "UNKNOWN"
|
|
20
27
|
try:
|
|
@@ -89,6 +96,8 @@ def get_apps(
|
|
|
89
96
|
for entry in directory:
|
|
90
97
|
if not entry.is_dir():
|
|
91
98
|
continue
|
|
99
|
+
elif not is_valid_app_directory(entry):
|
|
100
|
+
continue
|
|
92
101
|
app = get_app_details(entry.name, load_secrets=load_secrets)
|
|
93
102
|
|
|
94
103
|
pseudotags = [app.name, app.cluster]
|
|
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
|