diff --git a/install/roles/tealc/tasks/infra-setup/install/install_argo.yaml b/install/roles/tealc/tasks/infra-setup/install/install_argo.yaml index 4b5effb4..be4e96db 100644 --- a/install/roles/tealc/tasks/infra-setup/install/install_argo.yaml +++ b/install/roles/tealc/tasks/infra-setup/install/install_argo.yaml @@ -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 diff --git a/install/roles/tealc/templates/argo/app-project/app-project.yaml b/install/roles/tealc/templates/argo/app-project/app-project.yaml new file mode 100644 index 00000000..69a16c6a --- /dev/null +++ b/install/roles/tealc/templates/argo/app-project/app-project.yaml @@ -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: + - '*' \ No newline at end of file diff --git a/install/roles/tealc/templates/argo/applications/amq-streams-infra.yaml b/install/roles/tealc/templates/argo/applications/amq-streams-infra.yaml index a8b62f2b..f5fd857b 100644 --- a/install/roles/tealc/templates/argo/applications/amq-streams-infra.yaml +++ b/install/roles/tealc/templates/argo/applications/amq-streams-infra.yaml @@ -22,7 +22,7 @@ spec: project: tealc app: strimzi spec: - project: default + project: applications source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/debezium.yaml b/install/roles/tealc/templates/argo/applications/debezium.yaml index c707c571..1db42dce 100644 --- a/install/roles/tealc/templates/argo/applications/debezium.yaml +++ b/install/roles/tealc/templates/argo/applications/debezium.yaml @@ -22,7 +22,7 @@ spec: project: tealc app: debezium spec: - project: default + project: applications source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/infra/argo-alerts.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/infra/argo-alerts.yaml.j2 index 5b730079..fe1edd69 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/infra/argo-alerts.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/infra/argo-alerts.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: argo spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-canary.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-canary.yaml.j2 index 927dc96a..eef9a7a4 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-canary.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-canary.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator.yaml.j2 index 90694b6c..7e1fcff5 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-drain-cleaner.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-drain-cleaner.yaml.j2 index 5b04903e..f4977a4d 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-drain-cleaner.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-drain-cleaner.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-connect.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-connect.yaml.j2 index 2e57166b..00d78733 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-connect.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-connect.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka.yaml.j2 index 6cafee2f..33cc4dcc 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-cluster-operator.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-cluster-operator.yaml.j2 index c238199e..4668029a 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-cluster-operator.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-cluster-operator.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-drain-cleaner.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-drain-cleaner.yaml.j2 index d9b16c5b..b558ee18 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-drain-cleaner.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-drain-cleaner.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-kafka.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-kafka.yaml.j2 index 6cafee2f..33cc4dcc 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-kafka.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/alerts/worker-02/strimzi-alerts-kafka.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/monitoring/dashboards/grafana-dashboards.yaml.j2 b/install/roles/tealc/templates/argo/applications/monitoring/dashboards/grafana-dashboards.yaml.j2 index 029dbc46..eff9243b 100644 --- a/install/roles/tealc/templates/argo/applications/monitoring/dashboards/grafana-dashboards.yaml.j2 +++ b/install/roles/tealc/templates/argo/applications/monitoring/dashboards/grafana-dashboards.yaml.j2 @@ -6,7 +6,7 @@ metadata: project: tealc app: strimzi spec: - project: default + project: monitoring source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD diff --git a/install/roles/tealc/templates/argo/applications/strimzi-infra.yaml b/install/roles/tealc/templates/argo/applications/strimzi-infra.yaml index 93fb4e5b..8a200e74 100644 --- a/install/roles/tealc/templates/argo/applications/strimzi-infra.yaml +++ b/install/roles/tealc/templates/argo/applications/strimzi-infra.yaml @@ -22,7 +22,7 @@ spec: project: tealc app: strimzi spec: - project: default + project: applications source: repoURL: https://github.com/ExcelentProject/sokar targetRevision: HEAD