Skip to content

Commit 59f0eaa

Browse files
feat: byod argocd
1 parent 4ae2e8a commit 59f0eaa

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
suite: Test External ArgoCD with GitOps Runtime
2+
templates:
3+
- app-proxy/config.yaml
4+
- app-proxy/deployment.yaml
5+
- gitops-operator.yaml
6+
tests:
7+
- it: app-proxy ConfigMap with external ArgoCD
8+
values:
9+
- ./values/mandatory-values-ingress.yaml
10+
- ./values/external-argocd-values.yaml
11+
template: app-proxy/config.yaml
12+
set:
13+
gitops-operator.libraryMode: false
14+
asserts:
15+
- equal:
16+
path: data.argoCdUrl
17+
value: http://my-argocd-server
18+
- equal:
19+
path: data.argoCdUsername
20+
value: admin
21+
22+
- it: app-proxy ConfigMap with external ArgoCD (override username)
23+
values:
24+
- ./values/mandatory-values-ingress.yaml
25+
- ./values/external-argocd-values.yaml
26+
template: app-proxy/config.yaml
27+
set:
28+
gitops-operator.libraryMode: false
29+
global.external-argo-cd.username: adminoverride
30+
asserts:
31+
- equal:
32+
path: data.argoCdUsername
33+
value: adminoverride
34+
35+
- it: ARGO_CD_PASSWORD env var in app-proxy (set via passwordSecretKeyRef)
36+
values:
37+
- ./values/mandatory-values-ingress.yaml
38+
- ./values/external-argocd-values.yaml
39+
template: app-proxy/deployment.yaml
40+
set:
41+
gitops-operator.libraryMode: false
42+
asserts:
43+
- contains:
44+
path: spec.template.spec.containers[0].env
45+
content:
46+
name: ARGO_CD_PASSWORD
47+
valueFrom:
48+
secretKeyRef:
49+
key: password
50+
name: argocd-initial-admin-secret
51+
52+
- it: ARGO_CD_USERNAME env var in app-proxy (set via username)
53+
values:
54+
- ./values/mandatory-values-ingress.yaml
55+
- ./values/external-argocd-values.yaml
56+
template: app-proxy/deployment.yaml
57+
set:
58+
gitops-operator.libraryMode: false
59+
global.external-argo-cd.username: adminoverride
60+
asserts:
61+
- contains:
62+
path: spec.template.spec.containers[0].env
63+
content:
64+
name: ARGO_CD_USERNAME
65+
value: adminoverride
66+
67+
- it: ARGO_CD_URL env var in gitops-operator
68+
values:
69+
- ./values/mandatory-values-ingress.yaml
70+
- ./values/external-argocd-values.yaml
71+
template: gitops-operator.yaml
72+
set:
73+
gitops-operator:
74+
libraryMode: true
75+
crds:
76+
install: false
77+
asserts:
78+
- contains:
79+
path: spec.template.spec.containers[1].env
80+
content:
81+
name: ARGO_CD_URL
82+
value: my-argocd-server:80
83+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
global:
2+
external-argo-cd:
3+
server:
4+
protocol: http
5+
svc: my-argocd-server
6+
port: 80
7+
image:
8+
repository: quay.io/argoproj/argocd
9+
tag: v2.14.2
10+
redis:
11+
svc: my-argocd-redis
12+
port: 6379
13+
repoServer:
14+
svc: my-argocd-repo-server
15+
port: 8081
16+
secretName: "gitops-runtime-argo-cd-password"
17+
username: "admin"
18+
password: ""
19+
passwordSecretKeyRef:
20+
name: argocd-initial-admin-secret
21+
key: password
22+
23+
argo-cd:
24+
enabled: false
25+
26+
cf-argocd-extras:
27+
enabled: true

0 commit comments

Comments
 (0)