Skip to content

Commit 1b98a3a

Browse files
CR-23223 rename and graduate argo-cd-sync step from incubating (#692)
* CR-23223 rename and graduate argo-cd-sync step from incubating * CR-23223 rename and graduate argo-cd-sync step from incubating * CR-23223 rename and graduate argo-cd-sync step from incubating * CR-23223 rename and graduate argo-cd-sync step from incubating * merge last argo-cd-sync step to gitops-argocd-sync
1 parent 45975a2 commit 1b98a3a

17 files changed

+773
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
env_vars_to_export
2+
vars.sh
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Changelog
2+
3+
## [1.4.5] - 2024-04-04
4+
### Fixed
5+
- fixing CVEs
6+
- upgrade requirements.txt
7+
- install Python modules locally
8+
9+
## [1.4.4] - 2024-03-07
10+
### Fixed
11+
- Do not sync an application in auto-sync mode
12+
- Check for application existence before anything is done
13+
14+
## [1.4.3] - 2024-02-22
15+
### Fixed
16+
- Intercepting application not found for better error message
17+
18+
### Changed
19+
- Move the creation of the link to the application earlier
20+
- Exit with error when app is in OUT_OF_SYNC state
21+
22+
## [1.4.2] - 2024-01-17
23+
### Changed
24+
- New graphql call to speed up query
25+
26+
## [1.4.1] - 2023-10-31
27+
### Changed
28+
- Add CA_BUNDLE option
29+
30+
## [1.4.0] - 2023-10-30
31+
### Changed
32+
- Add INSECURE option
33+
34+
## [1.3.1] - 2023-09-18
35+
### Fixed
36+
- CVE-2023-37920 - upgrade Python module certifi to 2023.7.22
37+
- CVE-2019-8457 - upgrade base image to python:3.11.5-slim-bookworm
38+
39+
## [1.3.0] - 2023-05-19
40+
### Changed
41+
- Adding IMAGE_NAME parameter
42+
- Adding example
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
12+
RUN pip3 install --upgrade pip
13+
RUN pip3 install --user -r requirements.txt
14+
COPY queries queries/
15+
COPY argocd_sync.py run.py
16+
CMD [ "python3", "run.py"]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# gitops-argocd-sync
2+
3+
Syncs Argo CD apps managed by our GitOps Runtimes using Codefresh API
4+
5+
## Installation
6+
7+
* `pip3 install -r requirements.txt`
8+
9+
## Run
10+
11+
* `python3 argocd_sync.py`
12+
13+
## Supported parameters
14+
| Name | Description | Optional | Default value |
15+
|:---------------|:------------------------------------------------------------------------------------------|:---------|:--------------------------------------------|
16+
| RUNTIME | The name of the GitOps Runtime managing the Argo CD Application | false | |
17+
| APPLICATION | The name of the Argo CD Application to be synced | false | |
18+
| ROLLBACK | Initiate a rollback to the previous revision if the Sync and Wait does not become healthy | true | |
19+
| WAIT_ROLLBACK | Wait for the app to be healthy after a rollback. Forces ROLLBACK to true | true | |
20+
| CA_BUNDLE | A base64 encoded string that contain the complete CA Certificate Bundle | true | |
21+
| INSECURE | Allows the usage of a self-signed certificate in the chain to reach the API endpoint | true | |
22+
| WAIT_HEALTHY | Wait for the app to be healthy | true | false |
23+
| INTERVAL | Interval in seconds to wait between checks | true | 10 |
24+
| MAX_CHECKS | Maximum numbers of checks to do (to avoid forever wait) | true | 10 |
25+
| LOG_LEVEL | Set the log level, e.g. 'debug', 'info', 'warn', 'error', 'critical' (default 'error') | true | error |
26+
| CF_URL | Codefresh API URL | true | https://g.codefresh.io |
27+
| CF_API_KEY | Codefresh API token | true | |
28+
| CF_STEP_NAME | Used in generating a link to the Apps Dashboard | true | STEP_NAME |
29+
| IMAGE_NAME | Overwrites the image name | true | quay.io/codefreshplugins/gitops-argocd-sync |
30+
| IMAGE_TAG | Overwrites the tag | true | 1.4.4 |

0 commit comments

Comments
 (0)