Skip to content

Commit

Permalink
Split argocd deployments into app projects (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornys authored Aug 22, 2023
1 parent c112cba commit 59ca201
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,12 @@
reason: MinimumReplicasAvailable
retries: 20
delay: 5

- name: Create argo app-projects
kubernetes.core.k8s:
kubeconfig: "{{ kubeconfig_path }}/{{ infra_context_name }}"
namespace: "{{ infra_argo_namespace }}"
state: present
verify_ssl: no
src: templates/argo/app-project/app-project.yaml
apply: true
43 changes: 43 additions & 0 deletions install/roles/tealc/templates/argo/app-project/app-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: applications
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- namespace: '*'
server: '*'
sourceRepos:
- '*'

---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: infra
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- namespace: '*'
server: '*'
sourceRepos:
- '*'

---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: monitoring
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- namespace: '*'
server: '*'
sourceRepos:
- '*'
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
project: tealc
app: strimzi
spec:
project: default
project: applications
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
project: tealc
app: debezium
spec:
project: default
project: applications
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: argo
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
project: tealc
app: strimzi
spec:
project: default
project: monitoring
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
project: tealc
app: strimzi
spec:
project: default
project: applications
source:
repoURL: https://github.com/ExcelentProject/sokar
targetRevision: HEAD
Expand Down

0 comments on commit 59ca201

Please sign in to comment.