Skip to content

Commit e61f6bb

Browse files
committed
Update
1 parent e7d747a commit e61f6bb

File tree

14 files changed

+770
-8
lines changed

14 files changed

+770
-8
lines changed

.github/workflows/lint.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code scans
1+
name: "Validation, verifications, and lints"
22
on:
33
pull_request:
44
paths-ignore:
@@ -24,3 +24,16 @@ jobs:
2424
- name: Ensure there is no diff in code
2525
run: |
2626
git diff --ignore-matching-lines='.*createdAt:.*' --exit-code -- .
27+
28+
verify_argo_cd_has_updated_dependencies:
29+
name: Verify Argo CD has updated dependencies, for the given target version
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v5
34+
- name: "Call update dependencies Makefile target"
35+
run: |
36+
make update-dependencies
37+
- name: Ensure there is no unexpected diff in repository artifacts
38+
run: |
39+
git diff --ignore-matching-lines='.*createdAt:.*' --exit-code -- .

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
66
VERSION ?= 0.17.0
77

8+
# ARGO_CD_TARGET_VERSION is the target version that argocd-operator will install.
9+
# Update this when you upgrade the Argo CD dependencies of the project.
10+
# After updating, call 'make update-dependencies'.
11+
# Notes:
12+
# - String should NOT begin with 'v' prefix, e.g. 'v3.1.1'
13+
ARGO_CD_TARGET_VERSION ?= 3.1.8
14+
815
# Try to detect Docker or Podman
916
CONTAINER_RUNTIME := $(shell command -v docker 2> /dev/null || command -v podman 2> /dev/null)
1017

@@ -357,3 +364,8 @@ if [ $$(printf '%s\n' $$requiredver $$currentver | sort -V | head -n1) = $$requi
357364
rm -rf $$TMP_DIR ;\
358365
}
359366
endef
367+
368+
# Updates upstream dependencies throughout the repository
369+
.PHONY: update-dependencies
370+
update-dependencies:
371+
"hack/update-dependencies-script/run.sh"

build/util/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Argo CD v3.1.1
2-
FROM quay.io/argoproj/argocd@sha256:a36ab0c0860c77159c16e04c7e786e7a282f04889ba9318052f0b8897d6d2040 AS argocd
1+
# Argo CD v3.1.8
2+
FROM quay.io/argoproj/argocd@sha256:19ba7f44cba487c4a0c98ac336327c4df04383dff84f87ea1a578972eb62dd17 as argocd
33

44
# Final Image
55
FROM docker.io/library/ubuntu:24.04

common/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const (
7070
ArgoCDDefaultArgoImage = "quay.io/argoproj/argocd"
7171

7272
// ArgoCDDefaultArgoVersion is the Argo CD container image digest to use when version not specified.
73-
ArgoCDDefaultArgoVersion = "sha256:a36ab0c0860c77159c16e04c7e786e7a282f04889ba9318052f0b8897d6d2040" // v3.1.1
73+
ArgoCDDefaultArgoVersion = "sha256:19ba7f44cba487c4a0c98ac336327c4df04383dff84f87ea1a578972eb62dd17" // v3.1.8
7474

7575
// ArgoCDDefaultBackupKeyLength is the length of the generated default backup key.
7676
ArgoCDDefaultBackupKeyLength = 32

config/crd/bases/argoproj.io_applications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5887,4 +5887,4 @@ spec:
58875887
type: object
58885888
served: true
58895889
storage: true
5890-
subresources: {}
5890+
subresources: {}

config/crd/bases/argoproj.io_applicationsets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17721,4 +17721,4 @@ spec:
1772117721
served: true
1772217722
storage: true
1772317723
subresources:
17724-
status: {}
17724+
status: {}

config/crd/bases/argoproj.io_appprojects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,4 @@ spec:
363363
- spec
364364
type: object
365365
served: true
366-
storage: true
366+
storage: true

controllers/argocd/dex_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func TestReconcileArgoCD_reconcileDexDeployment_withUpdate(t *testing.T) {
581581
Containers: []corev1.Container{
582582
{
583583
Name: "dex",
584-
Image: "ghcr.io/dexidp/dex@sha256:b08a58c9731c693b8db02154d7afda798e1888dc76db30d34c4a0d0b8a26d913",
584+
Image: "ghcr.io/dexidp/dex@sha256:b08a58c9731c693b8db02154d7afda798e1888dc76db30d34c4a0d0b8a26d913", // (v2.43.0) NOTE: this value is modified by dependency update script
585585
Command: []string{
586586
"/shared/argocd-dex",
587587
"rundex",
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# update-dependencies-script
2+
3+
This is a simple go-based script that will upgrade the upstream dependencies in argocd-operator.
4+
5+
## To run this script:
6+
7+
In `(root)/Makefile`, modify `ARGO_CD_TARGET_VERSION` to target Argo CD version.
8+
9+
Example:
10+
```
11+
ARGO_CD_TARGET_VERSION ?= 3.1.8
12+
```
13+
14+
Then run the script:
15+
```
16+
make update-dependencies
17+
```
18+
19+
See `hack/update-dependencies-script/main.go` for list dependencies that are updated.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module github.com/argoproj-labs/argocd-operator/dependency-upgrade
2+
3+
go 1.20
4+
5+
require (
6+
github.com/google/go-github/v58 v58.0.0
7+
github.com/google/go-querystring v1.1.0 // indirect
8+
gopkg.in/yaml.v2 v2.4.0
9+
)

0 commit comments

Comments
 (0)