Skip to content

Commit 7975120

Browse files
committed
Adds app configuration for ArgoCD
1 parent 9622626 commit 7975120

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: leaderboards
5+
namespace: argocd
6+
spec:
7+
project: leaderboards
8+
source:
9+
repoURL: https://github.com/lunatech-labs/lunatech-lunacloud-workloads.git
10+
targetRevision: HEAD
11+
path: manifests/leaderboards
12+
destination:
13+
server: https://kubernetes.default.svc
14+
namespace: leaderboards
15+
syncPolicy:
16+
automated: { }
17+
syncOptions:
18+
- CreateNamespace=true
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: AppProject
3+
metadata:
4+
name: leaderboards
5+
namespace: argocd
6+
# Finalizer that ensures that project is not deleted until it is not referenced by any application
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io
9+
spec:
10+
# Project description
11+
description: leaderboards
12+
13+
# Allow manifests to deploy from any Git repos
14+
sourceRepos:
15+
- 'https://github.com/lunatech-labs/*'
16+
17+
# Only permit applications to deploy to the guestbook namespace in the same cluster
18+
destinations:
19+
- namespace: leaderboards
20+
server: https://kubernetes.default.svc
21+
22+
# Allow all namespaced-scoped resources to be created, except for ResourceQuota, LimitRange, NetworkPolicy
23+
namespaceResourceBlacklist:
24+
- group: ''
25+
kind: ResourceQuota
26+
- group: ''
27+
kind: LimitRange
28+
- group: ''
29+
kind: NetworkPolicy
30+
31+
# Enables namespace orphaned resource monitoring.
32+
orphanedResources:
33+
warn: false
34+
35+
roles:
36+
- name: full-access
37+
description: Developer privileges to my-project
38+
policies:
39+
- p, role:leaderboards, applications, create, leaderboards/*, allow
40+
- p, role:leaderboards, applications, delete, leaderboards/*, allow
41+
- p, role:leaderboards, applications, get, leaderboards/*, allow
42+
- p, role:leaderboards, applications, override, leaderboards/*, allow
43+
- p, role:leaderboards, applications, sync, leaderboards/*, allow
44+
- p, role:leaderboards, applications, update, leaderboards/*, allow
45+
- p, role:leaderboards, logs, get, leaderboards/*, allow
46+
- p, role:leaderboards, exec, create, leaderboards/*, allow
47+
- p, role:leaderboards, projects, get, leaderboards, allow
48+
groups:
49+
- project-leaderboards
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: leaderboards
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
cd "$(dirname "$0")"
3+
set -e
4+
NEW_VERSION=$1
5+
cat > ../../manifests/lunagraph/.argocd-source-lunagraph.yml << EOF
6+
kustomize:
7+
images:
8+
- ghcr.io/lunatech-labs/lunacloud-leaderboards:$NEW_VERSION
9+
EOF

0 commit comments

Comments
 (0)