From 95e6f9b320f0c759d80fc1ee15d6bb44e886ec36 Mon Sep 17 00:00:00 2001 From: Vegard Hagen Date: Mon, 9 Jan 2023 19:15:52 +0100 Subject: [PATCH] fix(argocd): Enabling selfHeal and prune on Applications --- apps/arr.yaml | 4 +++- apps/home-assistant.yaml | 4 +++- apps/plex.yaml | 4 +++- apps/whoami.yaml | 4 +++- infra/argocd.yaml | 1 + infra/argocd/applications.yaml | 5 ++++- infra/argocd/infrastructure.yaml | 5 ++++- infra/argocd/project.yaml | 5 ++++- infra/dashboard.yaml | 1 + infra/metallb.yaml | 1 + 10 files changed, 27 insertions(+), 7 deletions(-) diff --git a/apps/arr.yaml b/apps/arr.yaml index 9e8fc35..ba1187f 100644 --- a/apps/arr.yaml +++ b/apps/arr.yaml @@ -15,6 +15,8 @@ spec: namespace: arr name: in-cluster syncPolicy: - automated: {} + automated: + selfHeal: true + prune: true syncOptions: - CreateNamespace=true diff --git a/apps/home-assistant.yaml b/apps/home-assistant.yaml index 9d66429..bb55cc6 100644 --- a/apps/home-assistant.yaml +++ b/apps/home-assistant.yaml @@ -15,6 +15,8 @@ spec: namespace: home-assistant name: in-cluster syncPolicy: - automated: {} + automated: + selfHeal: true + prune: true syncOptions: - CreateNamespace=true diff --git a/apps/plex.yaml b/apps/plex.yaml index f2b0ceb..dbb6b3b 100644 --- a/apps/plex.yaml +++ b/apps/plex.yaml @@ -15,6 +15,8 @@ spec: namespace: plex name: in-cluster syncPolicy: - automated: {} + automated: + selfHeal: true + prune: true syncOptions: - CreateNamespace=true diff --git a/apps/whoami.yaml b/apps/whoami.yaml index ee0e030..42f8c1d 100644 --- a/apps/whoami.yaml +++ b/apps/whoami.yaml @@ -15,6 +15,8 @@ spec: namespace: whoami name: in-cluster syncPolicy: - automated: {} + automated: + selfHeal: true + prune: true syncOptions: - CreateNamespace=true diff --git a/infra/argocd.yaml b/infra/argocd.yaml index 353bfd9..41e0913 100644 --- a/infra/argocd.yaml +++ b/infra/argocd.yaml @@ -17,5 +17,6 @@ spec: syncPolicy: automated: selfHeal: true + prune: true syncOptions: - CreateNamespace=true diff --git a/infra/argocd/applications.yaml b/infra/argocd/applications.yaml index f2ef2b0..d580e42 100644 --- a/infra/argocd/applications.yaml +++ b/infra/argocd/applications.yaml @@ -34,4 +34,7 @@ spec: name: in-cluster syncPolicy: automated: - selfHeal: true \ No newline at end of file + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true diff --git a/infra/argocd/infrastructure.yaml b/infra/argocd/infrastructure.yaml index 00fc7fe..7d76967 100644 --- a/infra/argocd/infrastructure.yaml +++ b/infra/argocd/infrastructure.yaml @@ -35,4 +35,7 @@ spec: name: in-cluster syncPolicy: automated: - selfHeal: true \ No newline at end of file + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true diff --git a/infra/argocd/project.yaml b/infra/argocd/project.yaml index a47b61d..3d8d73d 100644 --- a/infra/argocd/project.yaml +++ b/infra/argocd/project.yaml @@ -8,4 +8,7 @@ spec: - 'https://github.com/vehagn/*' destinations: - namespace: 'argocd' - server: '*' \ No newline at end of file + server: '*' + clusterResourceWhitelist: + - group: '*' + kind: '*' \ No newline at end of file diff --git a/infra/dashboard.yaml b/infra/dashboard.yaml index b267e79..b9e6623 100644 --- a/infra/dashboard.yaml +++ b/infra/dashboard.yaml @@ -17,5 +17,6 @@ spec: syncPolicy: automated: selfHeal: true + prune: true syncOptions: - CreateNamespace=true diff --git a/infra/metallb.yaml b/infra/metallb.yaml index a6fe561..2d011db 100644 --- a/infra/metallb.yaml +++ b/infra/metallb.yaml @@ -17,5 +17,6 @@ spec: syncPolicy: automated: selfHeal: true + prune: true syncOptions: - CreateNamespace=true