Skip to content

Commit a7beb10

Browse files
merge last argo-cd-sync step to gitops-argocd-sync
1 parent f86ae42 commit a7beb10

File tree

4 files changed

+38
-24
lines changed

4 files changed

+38
-24
lines changed

graduated/gitops-argocd-sync/CHANGELOG.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
11
# Changelog
22

3+
## [1.4.5] - 2024-04-04
4+
### Fixed
5+
- fixing CVEs
6+
- upgrade requirements.txt
7+
- install Python modules locally
8+
39
## [1.4.4] - 2024-03-07
410
### Fixed
5-
Do not sync an application in auto-sync mode
6-
Check for application existence before anything is done
11+
- Do not sync an application in auto-sync mode
12+
- Check for application existence before anything is done
713

814
## [1.4.3] - 2024-02-22
915
### Fixed
10-
intercepting application not found for better error message
16+
- Intercepting application not found for better error message
1117

1218
### Changed
13-
Move the creation of the link to the application earlier
14-
Exit with error when app is in OUT_OF_SYNC state
19+
- Move the creation of the link to the application earlier
20+
- Exit with error when app is in OUT_OF_SYNC state
1521

1622
## [1.4.2] - 2024-01-17
1723
### Changed
18-
New graphql call to speed up query
24+
- New graphql call to speed up query
1925

2026
## [1.4.1] - 2023-10-31
2127
### Changed
22-
Add CA_BUNDLE option
28+
- Add CA_BUNDLE option
2329

2430
## [1.4.0] - 2023-10-30
2531
### Changed
26-
Add INSECURE option
32+
- Add INSECURE option
2733

2834
## [1.3.1] - 2023-09-18
2935
### Fixed
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
FROM python:3.12.0-bookworm
2-
WORKDIR /app
3-
COPY requirements.txt requirements.txt
1+
FROM python:3.13.0a5-bookworm
2+
3+
4+
# USER codefresh
5+
RUN useradd -d /home/codefresh -m -s /usr/bin/bash codefresh
6+
USER codefresh
7+
WORKDIR /home/codefresh
8+
9+
ENV PYTHONPATH /home/codefresh/.local/lib/python3.13/site-packages/
10+
11+
COPY --chown=codefresh requirements.txt requirements.txt
412
RUN pip3 install --upgrade pip
5-
RUN pip3 install -r requirements.txt
13+
RUN pip3 install --user -r requirements.txt
614
COPY queries queries/
715
COPY argocd_sync.py run.py
816
CMD [ "python3", "run.py"]
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
backoff==2.2.1
2-
certifi==2023.7.22
3-
charset-normalizer==3.1.0
4-
gql==3.4.0
2+
certifi==2024.2.2
3+
charset-normalizer==3.3.2
4+
gql==3.5.0
55
graphql-core==3.2.3
6-
idna==3.4
7-
multidict==6.0.4
8-
requests==2.28.2
9-
requests-toolbelt==0.10.1
10-
urllib3==1.26.16
11-
yarl==1.9.2
6+
idna==3.6
7+
multidict==6.0.5
8+
requests==2.31.0
9+
requests-toolbelt==1.0.0
10+
urllib3==2.2.1
11+
yarl==1.9.4

graduated/gitops-argocd-sync/step.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: step-type
22
metadata:
33
name: gitops-argocd-sync
4-
version: 1.4.4
4+
version: 1.4.5
55
isPublic: true
66
description: Syncs Argo CD apps managed by our GitOps Runtimes
77
sources:
@@ -120,7 +120,7 @@ spec:
120120
},
121121
"IMAGE_TAG": {
122122
"type": "string",
123-
"default": "1.4.4",
123+
"default": "1.4.5",
124124
"description": "OPTIONAL - To overwrite the tag to use"
125125
}
126126
}
@@ -157,7 +157,7 @@ spec:
157157
[[ if .Arguments.CA_BUNDLE ]]
158158
- echo [[ .Arguments.CA_BUNDLE ]] | base64 -d >/root/bundle.pem
159159
[[ end ]]
160-
- cd /app
160+
- cd /home/codefresh
161161
- python3 run.py
162162
163163
delimiters:

0 commit comments

Comments
 (0)