Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split argocd deployments into app projects #241

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading