gitops 1.3.0__tar.gz → 1.4.0__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-1.3.0 → gitops-1.4.0}/.github/workflows/release-please.yaml +0 -1
- {gitops-1.3.0 → gitops-1.4.0}/.github/workflows/test.yml +0 -1
- gitops-1.4.0/.release-please-manifest.json +5 -0
- {gitops-1.3.0 → gitops-1.4.0}/CHANGELOG.md +14 -0
- {gitops-1.3.0 → gitops-1.4.0}/Dockerfile +21 -17
- {gitops-1.3.0 → gitops-1.4.0}/PKG-INFO +1 -1
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/CHANGELOG.md +7 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/Chart.yaml +1 -1
- gitops-1.4.0/charts/gitops/templates/pdb.yml +19 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/values.yaml +12 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/__init__.py +1 -1
- {gitops-1.3.0 → gitops-1.4.0}/gitops/core.py +1 -1
- gitops-1.4.0/gitops_server/version.py +1 -0
- {gitops-1.3.0 → gitops-1.4.0}/pyproject.toml +1 -1
- gitops-1.3.0/.release-please-manifest.json +0 -5
- gitops-1.3.0/gitops_server/version.py +0 -1
- {gitops-1.3.0 → gitops-1.4.0}/.dockerignore +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/.gitignore +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/.mise.toml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/.pre-commit-config.yaml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/LICENSE +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/README.md +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/.helmignore +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/README.md +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/_helpers.tpl +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/certificate.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/deployment.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/environment.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/ingress.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/issuer.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/secrets.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/service.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/charts/gitops/templates/serviceaccount.yaml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/docker-compose.yml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/common/__init__.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/common/app.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/common/utils.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/main.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/py.typed +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/settings.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/shorthands.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/__init__.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/apps.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/async_runner.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/cli.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/exceptions.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/images.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/kube.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/tags.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops/utils/yaml.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/CHANGELOG.md +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/README.md +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/__init__.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/app.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/main.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/settings.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/types.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/utils/__init__.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/utils/git.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/utils/github.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/utils/slack.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/workers/__init__.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/workers/deployer/__init__.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/workers/deployer/deploy.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/workers/deployer/hooks.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/gitops_server/workers/deployer/worker.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/release-please-config.json +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/release.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/ruff.toml +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/secrets.example.env +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/setup.cfg +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/__init__.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/conftest.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/sample_data.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/test_app.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/test_core.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/test_deploy.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/test_git.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/test_gitops_server.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/test_utils.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/utils.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/tests/webhook_sample_data.py +0 -0
- {gitops-1.3.0 → gitops-1.4.0}/uv.lock +0 -0
|
@@ -76,6 +76,5 @@ jobs:
|
|
|
76
76
|
docker-context: "."
|
|
77
77
|
docker-tag: "${{ needs.release-please.outputs.server-version }}"
|
|
78
78
|
docker-tag-latest: true
|
|
79
|
-
docker-image-platforms: linux/amd64
|
|
80
79
|
docker-repository: "610829907584.dkr.ecr.ap-southeast-2.amazonaws.com/gitops"
|
|
81
80
|
command: echo $SECRET_ENV | base64 -d > cluster.key
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.0](https://github.com/uptick/gitops/compare/gitops-v1.3.1...gitops-v1.4.0) (2025-05-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **.github/workflows:** Build docker images for graviton instances ([7350fca](https://github.com/uptick/gitops/commit/7350fca5135000456b97ad6eb64e703e7ab2ecba))
|
|
9
|
+
|
|
10
|
+
## [1.3.1](https://github.com/uptick/gitops/compare/gitops-v1.3.0...gitops-v1.3.1) (2025-04-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **git:** correctly retry on failed git push ([b0f6181](https://github.com/uptick/gitops/commit/b0f6181b72229998777d65529e6e67735f5977c2))
|
|
16
|
+
|
|
3
17
|
## [1.3.0](https://github.com/uptick/gitops/compare/gitops-v1.2.0...gitops-v1.3.0) (2025-03-25)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
FROM python:3.12-slim
|
|
2
2
|
|
|
3
|
+
ARG TARGETARCH
|
|
4
|
+
|
|
3
5
|
##
|
|
4
6
|
## Install kubectl and dependencies.
|
|
5
7
|
##
|
|
6
|
-
# RUN apk add -U openssl curl tar gzip bash ca-certificates && \
|
|
7
|
-
# wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub && \
|
|
8
|
-
# wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-2.23-r3.apk && \
|
|
9
|
-
# apk add glibc-2.23-r3.apk && \
|
|
10
|
-
# rm glibc-2.23-r3.apk
|
|
11
|
-
# RUN curl -L -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl && \
|
|
12
|
-
# chmod +x /usr/bin/kubectl && \
|
|
13
|
-
# kubectl version --client
|
|
14
8
|
ENV KUBE_LATEST_VERSION="v1.21.3"
|
|
15
9
|
ENV HELM_VERSION="v3.6.2" \
|
|
16
10
|
VIRTUAL_ENV="/app/.venv" \
|
|
17
11
|
PATH="/app/.venv/bin:$PATH"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
RUN apt-get update \
|
|
15
|
+
&& apt-get install wget ca-certificates bash git git-crypt -y --no-install-recommends \
|
|
16
|
+
# Download kubectl
|
|
17
|
+
&& wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/${TARGETARCH}/kubectl -O /usr/local/bin/kubectl \
|
|
21
18
|
&& chmod +x /usr/local/bin/kubectl \
|
|
22
|
-
|
|
19
|
+
\
|
|
20
|
+
# Download helm
|
|
21
|
+
&& wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz -O - | tar -xzO linux-${TARGETARCH}/helm > /usr/local/bin/helm \
|
|
23
22
|
&& chmod +x /usr/local/bin/helm \
|
|
23
|
+
\
|
|
24
|
+
# Install helm-secrets plugin
|
|
24
25
|
&& helm plugin install https://github.com/jkroepke/helm-secrets --version v4.2.2 \
|
|
25
|
-
|
|
26
|
+
\
|
|
27
|
+
# Download sops
|
|
28
|
+
&& wget -q https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.${TARGETARCH} -O /usr/local/bin/sops \
|
|
26
29
|
&& chmod +x /usr/local/bin/sops \
|
|
30
|
+
\
|
|
27
31
|
&& apt-get clean \
|
|
28
32
|
&& apt-get -y autoremove \
|
|
29
33
|
&& rm -rf /var/lib/apt/lists/* \
|
|
30
|
-
&& rm -rf /var/cache/apt/
|
|
31
|
-
|
|
34
|
+
&& rm -rf /var/cache/apt/
|
|
35
|
+
|
|
36
|
+
ENV SHELL=/bin/bash
|
|
32
37
|
|
|
33
38
|
##
|
|
34
39
|
## Install dependencies and copy GitOps server.
|
|
@@ -49,5 +54,4 @@ ENV GIT_CRYPT_KEY_FILE=/app/cluster.key
|
|
|
49
54
|
ENV PYTHONPATH="$PYTHONPATH:/app"
|
|
50
55
|
ENV ACCESS_LOG=""
|
|
51
56
|
|
|
52
|
-
|
|
53
|
-
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "gitops_server.main:app"]
|
|
57
|
+
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "gitops_server.main:app"]
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.0](https://github.com/uptick/gitops/compare/helm-v1.1.2...helm-v1.2.0) (2025-05-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **charts/gitops:** Add pdb template ([4ac5fdb](https://github.com/uptick/gitops/commit/4ac5fdb2b5d4a2b37e43aa79aa231e15255c4400))
|
|
9
|
+
|
|
3
10
|
## [1.1.2](https://github.com/uptick/gitops/compare/helm-v1.1.1...helm-v1.1.2) (2025-02-14)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{{- if .Values.podDisruptionBudget.enabled }}
|
|
2
|
+
apiVersion: policy/v1
|
|
3
|
+
kind: PodDisruptionBudget
|
|
4
|
+
metadata:
|
|
5
|
+
name: {{ .Release.Name }}-pdb
|
|
6
|
+
namespace: {{ .Release.Namespace }}
|
|
7
|
+
labels:
|
|
8
|
+
app: {{ .Release.Name }}
|
|
9
|
+
spec:
|
|
10
|
+
{{- if .Values.podDisruptionBudget.minAvailable }}
|
|
11
|
+
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
12
|
+
{{- end }}
|
|
13
|
+
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
|
14
|
+
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
|
15
|
+
{{- end }}
|
|
16
|
+
selector:
|
|
17
|
+
matchLabels:
|
|
18
|
+
app: {{ .Release.Name }}
|
|
19
|
+
{{- end }}
|
|
@@ -30,7 +30,19 @@ nodeSelector: {}
|
|
|
30
30
|
tolerations: []
|
|
31
31
|
|
|
32
32
|
affinity: {}
|
|
33
|
+
podDisruptionBudget: {}
|
|
34
|
+
# podDisruptionBudget:
|
|
35
|
+
# enabled: true
|
|
36
|
+
# minAvailable: 1
|
|
37
|
+
# maxUnavailable: 1
|
|
33
38
|
|
|
39
|
+
resources:
|
|
40
|
+
limits:
|
|
41
|
+
cpu: 500m
|
|
42
|
+
memory: 512Mi
|
|
43
|
+
requests:
|
|
44
|
+
cpu: 100m
|
|
45
|
+
memory: 128Mi
|
|
34
46
|
serviceAccount:
|
|
35
47
|
# Specifies whether a service account should be created
|
|
36
48
|
create: true
|
|
@@ -376,7 +376,7 @@ def git_push(cluster_path: str, retry: int = 3):
|
|
|
376
376
|
attempts = 0
|
|
377
377
|
while attempts <= retry:
|
|
378
378
|
result = run(f"cd {cluster_path}; git push", warn=True)
|
|
379
|
-
if result and result.exited == 1 and "remote contains work" in result.stderr:
|
|
379
|
+
if result is not None and result.exited == 1 and "remote contains work" in result.stderr:
|
|
380
380
|
attempts += 1
|
|
381
381
|
run(f"cd {cluster_path}; git pull --rebase=true")
|
|
382
382
|
else:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.3.0"
|
|
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
|