-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from projectsyn/feat/https-catalog
Add support for https catalog repo
- Loading branch information
Showing
43 changed files
with
45,112 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/golden/https-catalog/argocd/apps/00_default-project.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: default | ||
namespace: syn | ||
spec: | ||
clusterResourceWhitelist: | ||
- group: '*' | ||
kind: '*' | ||
destinations: | ||
- namespace: '*' | ||
server: '*' | ||
sourceRepos: | ||
- '*' |
16 changes: 16 additions & 0 deletions
16
tests/golden/https-catalog/argocd/apps/00_syn-project.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: syn | ||
namespace: syn | ||
spec: | ||
clusterResourceWhitelist: | ||
- group: '*' | ||
kind: '*' | ||
destinations: | ||
- namespace: '*' | ||
server: https://kubernetes.default.svc | ||
orphanedResources: | ||
warn: false | ||
sourceRepos: | ||
- https://git.example.com/cluster-catalog.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: root | ||
namespace: syn | ||
spec: | ||
destination: | ||
namespace: syn | ||
server: https://kubernetes.default.svc | ||
project: syn | ||
source: | ||
directory: | ||
recurse: true | ||
path: manifests/apps/ | ||
repoURL: https://git.example.com/cluster-catalog.git | ||
targetRevision: HEAD | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/compare-options: ServerSideDiff=true | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
name: argocd | ||
namespace: syn | ||
spec: | ||
destination: | ||
namespace: syn | ||
server: https://kubernetes.default.svc | ||
project: syn | ||
source: | ||
directory: | ||
recurse: true | ||
path: manifests/argocd | ||
repoURL: https://git.example.com/cluster-catalog.git | ||
targetRevision: HEAD | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- ServerSideApply=true |
9 changes: 9 additions & 0 deletions
9
tests/golden/https-catalog/argocd/argocd/01_namespace/00_namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/part-of: argocd | ||
name: syn | ||
openshift.io/cluster-monitoring: 'true' | ||
name: syn |
97 changes: 97 additions & 0 deletions
97
tests/golden/https-catalog/argocd/argocd/01_namespace/20_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: syn-argocd-metrics | ||
app.kubernetes.io/part-of: argocd | ||
name: syn-component-argocd-metrics | ||
name: syn-component-argocd-metrics | ||
namespace: syn | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: syn-argocd-metrics | ||
app.kubernetes.io/part-of: argocd | ||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: syn-argocd-server-metrics | ||
app.kubernetes.io/part-of: argocd | ||
name: syn-component-argocd-server-metrics | ||
name: syn-component-argocd-server-metrics | ||
namespace: syn | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: syn-argocd-server-metrics | ||
app.kubernetes.io/part-of: argocd | ||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: syn-argocd-repo-server | ||
app.kubernetes.io/part-of: argocd | ||
name: syn-component-argocd-repo-server | ||
name: syn-component-argocd-repo-server | ||
namespace: syn | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: syn-argocd-repo-server | ||
app.kubernetes.io/part-of: argocd | ||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
cluster_id: c-green-test-1234 | ||
name: argocd | ||
prometheus: platform | ||
role: alert-rules | ||
tenant_id: t-silent-test-1234 | ||
name: argocd | ||
namespace: syn | ||
spec: | ||
groups: | ||
- name: argocd.rules | ||
rules: | ||
- alert: ArgoCDAppUnsynced | ||
annotations: | ||
dashboard: argocd | ||
description: kubectl -n syn describe app {{ $labels.name }} | ||
message: Argo CD app {{ $labels.name }} is not synced | ||
expr: argocd_app_info{exported_namespace="syn", sync_status!="Synced"} > | ||
0 | ||
for: 10m | ||
labels: | ||
severity: warning | ||
syn: 'true' | ||
- alert: ArgoCDAppUnhealthy | ||
annotations: | ||
dashboard: argocd | ||
description: kubectl -n syn describe app {{ $labels.name }} | ||
message: Argo CD app {{ $labels.name }} is not healthy | ||
expr: argocd_app_info{exported_namespace="syn", health_status!="Healthy"} | ||
> 0 | ||
for: 10m | ||
labels: | ||
severity: critical | ||
syn: 'true' | ||
- alert: ArgoCDDown | ||
annotations: | ||
dashboard: argocd | ||
message: Argo CD job {{ $labels.job }} is down | ||
expr: up{namespace="syn", job=~"^syn-argocd-.+$"} != 1 | ||
for: 5m | ||
labels: | ||
severity: critical | ||
syn: 'true' |
Oops, something went wrong.